Hello, thanks for the reply. On my side I did some tests and I found a solution that seems to work.
in the file mod/thewire/start.php
I modified the function function thewire_filter ($ text)
I disabled the $ text = preg_replace for the links and added as a function: return trim (html_entity_decode ($ text));
The Wire now displays the html perfectly.
You can change only start.php instead of 2 files or more.
Just add this in thewire_save_post() function:
$text = strip_tags($text);
Or even:
$text = urldecode(html_entity_decode(strip_tags($text)));
Before
$post->description = htmlspecialchars($text, ENT_NOQUOTES | ENT_SUBSTITUTE, 'UTF-8');
Keep in your minds, all your hacks will be lost after updating Elgg in next release.
So, best way is a creating your custom plugin.
@Vangardis please keep in mind http://learn.elgg.org/en/stable/guides/dont-modify-core.html
If you modify files directly in Elgg core those modification will be lost when you update. You can make a plugin with the modifications you need that way your hard work won't be lost on an update.
For example you could overrule the add form view http://learn.elgg.org/en/stable/guides/views.html#overriding-views
PS: mostly if there is an 'input/longtext' you want to output using 'output/longtext' this makes sure you don't see the HTML code. In your case have a look at https://github.com/Elgg/Elgg/blob/01f00125e6b4fa068b38cda61980405360df539b/mod/thewire/views/default/object/thewire.php#L30 and modify it to (in an overruled view):
$params['body'] = elgg_view('output/longtext', ['value' => $entity->description]);
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by Raül Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.