We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

Oxwall Editor | Forum

dave Leader
dave Aug 5 '20

Does anyone happen to know which editor oxwall uses, or is it of their own creation. 


What i am trying to do is figure out why html entities are not being saved after edit.  Yes they save the first time but if you edit the custom page at all and save it, entities are gone.


I know there has been an issue with < > and & in some editors not being escaped.  Thats why i wanted to look at this one to see what might be the issue.


The only thing i found so far is something called codemirror js 


for example... make a new site page with this content


&lt;a href="example.com?value1=&lt;?= $value1;?&gt;"&gt;press here&lt;/a&gt; 


then save it


view it, it looks perfect


then edit the page, dont change anything at all just click save


entites are gone and now its a clickable link which is not what i want.


Any idea what editor it might be, maybe there is an update if its a 3rd party editor. 
The Forum post is edited by dave Aug 5 '20
dave Leader
dave Aug 5 '20

I found it...


ow_utilities/html_tag.php


function generateTag


and the code i was looking for is online 53 and as i suspected those characters are hard coded into oxwall, which explains why the entities did not remain.   I might try tossing in some htmlspecialchars code to see if it blows up on me.


The Forum post is edited by dave Aug 5 '20
David
David Aug 10 '20
Have you managed to get this working the way you want it, yet?  I'm interested in modifying mine as well.
dave Leader
dave Aug 10 '20

I was able to get it working but not saving the entities.   So i just made myself a note for now that if i ever edit that page for any reason, to put the entities back in place before i save it.  Ill have to look at this again at a later date with a more global fix. 


The issue is that it parses the html code litterally because its hardcoded that way. So every time you go to edit the page you have to redo the entities and then save it again.  

The Forum post is edited by dave Aug 11 '20