You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
However, it's more complex than just adding back the < and > - we'd need to also recurse down into the child notes, AND add close tags </...> for each.
I wish it would just preserve the entire original HTML for each element, maybe as an original property. This would include a lot of redundant information, but really is useful for some use cases (like ours in publiclab/inline-markdown-editor#52).
Activity
jywarren commentedon Mar 5, 2019
I also need this - it looks like you can get the
rawversion of any node, as in https://www.npmjs.com/package/htmlparser#option-verboseHowever, it's more complex than just adding back the
<and>- we'd need to also recurse down into the child notes, AND add close tags</...>for each.I wish it would just preserve the entire original HTML for each element, maybe as an
originalproperty. This would include a lot of redundant information, but really is useful for some use cases (like ours in publiclab/inline-markdown-editor#52).jywarren commentedon Mar 5, 2019
OK, i did a very basic implementation (i think) here: #82. Can folks test it out?