tags:

views:

23

answers:

1

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:

<h2>A'b</h2>

to

<h2>A&#39;b-</h2>
+1  A: 

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

prodigitalson
Thanks. I don't know if it will work yet, but tt looks like it could be useful for other things too
Casebash