Feature - paste code-snippets to forum

I think it would be useful to be able to paste code snippets to the forum - i.e. the topic regarding awareness content where i had to escape the html tags for it to be visible in the post…

that would be a great improvement to the forum :slight_smile:

In full honesty im not really acquainted with “Forum Management” … is this what you mean?

$xp = new DOMXpath($dom);
$nodes = $xp->query('//input[@name="data[_Token][key]"]');
$node = $nodes->item(0);
$token_key= $node->getAttribute('value');

$nodes = $xp->query('//input[@name="data[_Token][fields]"]');
$node = $nodes->item(0);
$token_fields = $node->getAttribute('value');

in the following i have escaped html tags by inserting space between “<” and “html>” otherwise it will not be shown in
the post.

< html>
< header>

this is written inside non-escaped div html tags

< /header>
< /html>

Esteban is right, i think that is what you mean

<html>
<header>
lorem ipsum...
</header>
</html>