1

Everytime I run the Reformat HTML it substitutes the HTML entity name for the special character.

For Example:
I have in HTML ó after I run Reformat HTML... it changes it to ó, thus displaying strange characters in some browsers such as Mozilla. Again, this is in the HTML source screen.

Is it possible to stop this behaviour, or format the source in such a way that it survives the reformatting?

3
  • 3
    Is there a question?
    – Sean Earp
    Apr 13 '11 at 19:57
  • what happens if you encode the &: ó
    – djeeg
    Apr 13 '11 at 21:36
  • That is the problem, djeeg. If I enter the HTML entity for ampersand as &, after the Reformat HTML routine is run, it converts it to the character for ampersand (&). I do not want that.
    – Rick
    Apr 14 '11 at 13:54
1

Sometimes you need to double escape special characters. In your case ó should be escaped and entered as ó. What I don't understand here is why different browsers have different behaviors...

1
  • That doesn't change the HTML entity when I run the Reformat HTML routine, so technically it works, BUT it displays ó
    – Rick
    Apr 28 '11 at 13:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.