3

I found a question (screenshot here) where the user placed some subscript characters both in title and body.

The weird thing is the title displays them correctly, but the body won't, so I changed them to <sub>1</sub> and so on.

Now I'm wondering: is it possible to use the allowed HTML tags in the title, or not? (I don't want to try doing it as I fear to mess it up, and I don't have editing privilege so test edits will waste someone's time.)

1
  • That has been done using UTF. You can enable compose key and generate numerical subscripts/superscripts.
    – WYSIWYG
    Jul 25, 2015 at 6:01

1 Answer 1

4

It's possible, but it won't render as such. So if you put <i> or <li> in a title (without the code backticks, that is), it won't render in the title as italic or a list item. That lets you, among other things, ask about those elements. I've demonstrated exactly such in the title of this question.

There used to be an issue in which auto-generated titles would render the HTML even though the question title proper did not. As noted by balpha below, this will be fixed in the upcoming build.

5
  • 2
    that autogenerated thing needs some fixin' :)
    – balpha StaffMod
    Mar 7, 2011 at 13:43
  • ... and fixed (next build)
    – balpha StaffMod
    Mar 7, 2011 at 13:53
  • 1
    @balpha, now the title "Newline before closing </pre> might break formatting in other parts of same post" is rendered without the </pre> part altogether. Is that by design? (See here just above the "Update".)
    – Arjan
    Mar 9, 2011 at 8:54
  • @Arjan: this is about autogenerated link texts for bare question links. You entered the text by hand, including an (unencoded) </pre> that will get stripped
    – balpha StaffMod
    Mar 9, 2011 at 8:58
  • Aha, @balpha, of course! Sorry about the alert! :-)
    – Arjan
    Mar 9, 2011 at 9:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .