Forum

Thread tagged as: Blog, Comments

Allowed HTML in comments?

Hi!

I have a blog comment that includes some HTML, which I would like to display on the site within <code/> elements, can this be done? If I wrap the HTML bits in <code/> manually, the <code> elements seem to get escaped?

Best Hidde

Hidde de Vries

Hidde de Vries 0 points

  • 6 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Comments don't currently allow for any HTML.

Ah I see, but I have managed to get a blockquote someone added to show up on the site before, is that the exception?

Drew McLellan

Drew McLellan 2638 points
Perch Support

You can edit HTML in as a moderator.

So I did edit the HTML, but in the front-end, the contents of the <code> elements get stripped out in this comment

(Have now manually converted to entities, that works). On this forum, there is a syntax for adding code, is that something that can be extended to Perch blog comments (assuming it runs on something Perch-like :-)) ?

Drew McLellan

Drew McLellan 2638 points
Perch Support

That's Markdown. We could make it an option to switch comments to use Markdown.

This forum is not running on Perch.