Replies: 1 comment 7 replies
-
You seem to not be dealing with HTML, but perhaps some custom XML flavor.
Can you take some time investigating this info, change your example based on it, and post here if you still have questions? |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
hi! i'm making a utility to replace tags with mso comments used by microsoft email engine (further a part of an email framework). it's work is to basically replace something like
<outlook>hi</outlook>
to<!--[if mso]>hi<![endif]-->
i tried usinghast-util-find-and-replace
but that doesn't seem to work in my case.i also tried to implement something like visiting every node and modifying them
but got typescript errors
Type '"comment"' is not assignable to type '"element"'.ts(2322) which is quite fair since i check for it to be an element first.
how should i be going about doing this?
Beta Was this translation helpful? Give feedback.
All reactions