Why doesn't escape work with HTML tags?

(Rob Nicholson) #1

Why can’t you use the normal Discourse escape character \ with HTML tags. I just tried \<-textarea-\> (without the hyphens) and the text doesn’t appear. Using &lt and &gt does work but a user was wondering why they couldn’t enter <wibble> in a message. We’ve told users about the escape character but it’s a step too far to expect them to remember HTML strings like this.

(cpradio) #2

Teach them to treat it with code blocks using `<wibble>` to produce <wibble>

(Rob Nicholson) #3

Hmm, hardly ideal I’m afraid. I’d prefer escape characters to work as expected.

(Mittineague) #4

The only way that would work is if their was some kind of “do not cook, plain text raw post only” option. Similar to HTML emails vs. text emails.

The only way to mix the two is to learn how to do it.

(Jeff Atwood) #5

Because HTML is valid in Markdown, feel free to read the spec.

(Rob Nicholson) #6

Our users aren’t very happy with markdown but I know there isn’t any merit going over that again.

(Jeff Atwood) #7

There is a mode where no markup at all is supported, you could turn that on if needed. @eviltrout added it for mailing lists.