<title> in post breaks thread

Status
Not open for further replies.

gnosis

Ars Tribunus Angusticlavius
8,339
He's a subscriptor and is allowed to use HTML. I imagine the same would result from any similar HTML used. His problem, not the forum's unfortunately. Maybe a mod will stop by and edit the post?
Er, Ars should be filtering out tags that are obviously not legal in <body> (as I'm sure they filter other stuff, presumably including <link> and <script> tags). <title> has no place in the body of any HTML document, regardless of a member's privileges. And in context, it's clear that penguinboy meant to post <title> as readable ( &lt;title&gt; ), not as a <title> tag.
 

andrewme

Senator
7,120
Subscriptor
Originally posted by gnosis:
He's a subscriptor and is allowed to use HTML. I imagine the same would result from any similar HTML used. His problem, not the forum's unfortunately. Maybe a mod will stop by and edit the post?
Er, Ars should be filtering out tags that are obviously not legal in <body> (as I'm sure they filter other stuff, presumably including <link> and <script> tags). <title> has no place in the body of any HTML document, regardless of a member's privileges. And in context, it's clear that penguinboy meant to post <title> as readable ( &lt;title&gt; ), not as a <title> tag.
That's what I originally typed in. But then I edited the post and didn't realize that the craptastic forum software had replaced my '&lt;' and '&gt;' with '<' and '>', so the page broke when I saved my edit. The same thing happened when I started this reply - all the angle brackets showed up as the characters instead of the HTML entities.
It looks like the problem is that the forum software just dumps the post text into the <textarea> verbatim instead of replacing ampersand (&) with the appropriate HTML entity (&amp;).

This is one of those situations where a preview function would be really useful. It boggles my mind that one still hasn't been added.
 

andrewme

Senator
7,120
Subscriptor
Originally posted by Aurich:
Any time you edit a post you have to manually recheck "Disable HTML" in the options if you did it before. It's really fucking annoying, yes.

I didn't use "Disable HTML" initially (I typed the HTML entities for the various characters - I tend to forget about that option because it's hidden) but I guess it still would've prevented the editing hell.
 
Status
Not open for further replies.