Closed rob-rountree-cyted closed 1 year ago
There isn't a good way to do this ( I don't believe) with sanitize-html. Have you looked into the cheerio
package. It can handle nested tags.
Bob
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Say my "dirty HTML" is a
<h3>Hello world!</h3>
element which I'd like transformed to the following:<p><span style="font-weight: bold;">Hello world!</span></p>
How might I achieve that with
transformTags
, or is there another way?