#351 Escape any XML elements other that HTML markup

closed-out-of-date
nobody
7
2016-04-03
2010-07-16
keshav v
No

In many cases its happens that XML which is not HTML markup is also present in the html document and if user copies and pastes this xml along with HTML, then such an xml cannot not be made well formed using tidy.

Tidy can support such scenarios by providing a configuration so that it escapes any unknown xml elements other than html e.g
<div>
<p>this is new text
<one>value</one>
</div>

should after doing tidy processing with the new configuration should output

<div>
<p>this is new text
&lt;one&gt;value&lt;/one&gt;
</div>

Best Regards,
Keshav

Discussion

  • keshav v

    keshav v - 2010-07-16
    • priority: 5 --> 7
     
  • Geoff

    Geoff - 2016-04-03

    Thanks for the feature request... now so long ago... sorry for the delay...

    Tidy source has moved on to https://github.com/htacg/tidy-html5, site to http://www.html-tidy.org/

    Well you could get tidy to handle that <one> tag by say --new-blocklevel-tag one. As to having an option to escape it into text, not so sure...

    However, if you want to persue this, or find another tidy bug, or feature request, then please file an issue, together with sample html and config used, and if you find, fix, and test the feature in a tidy fork then you can issue a Pull Request. Always appreciated... thanks...

    Tidy needs your support...

    Meantime closing this here as out-of-date...

     
  • Geoff

    Geoff - 2016-04-03
    • status: open --> closed-out-of-date
    • Group: --> Current - all platforms
     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks