开发者

Partial HTML encoder

开发者 https://www.devze.com 2023-01-18 07:53 出处:网络
Suppose I have text with HTML tags, but where not all characters have been encoded. Are there any tools to intelligently encode while leaving the tags intact? Example:

Suppose I have text with HTML tags, but where not all characters have been encoded. Are there any tools to intelligently encode while leaving the tags intact? Example:

&l开发者_Go百科t;h2>A'b</h2>

to

<h2>A&#39;b-</h2>


You could give HTML Tidy a shot... Im not sure if you can configure it to do only this though...

0

精彩评论

暂无评论...
验证码 换一张
取 消