I am using GrapheneDB Neo4j 3.2 and node.js on heroku.
Is it possible to store html markup in a node's property in order to have that html displayed/respected in the app displaying this node/property?
Set n.Notes = 'Here is some text.<br>Here is some text on another line.'
Then in the app display the above text would show on 2 different lines?
Yes, you can definitely store html markup in a property. You'd probably use
<br> tags to separate lines or use escape character
More on escape characters:
Thanks so much for the help Ryan!
I've improved my original question (needed to escape the <br> code there so the tag would show in my question).
So it's normal to put html markup in a Neo4j node property and have it respected by an 'app'?
Is it more likely that my Node.js is not respecting the html? If that's the case, I'll switch forums.
It’s not abnormal in smaller quantities.
If you know it is safe, you sometimes need to indicate that to templating languages (ie python flask requires that you indicate the template variables are safe content, else it’ll be escaped)