Hi there, How do I escape the characteres of a primefaces editor?
I have this in form in a xhtml page
<p:editor value="#{managebeanX.valor}" />
but when I try to save this value through a sparql query it says:
virtuoso.jdbc4.VirtuosoException: SQ074: Line 2: SP030: SPARQL compiler, line 2: syntax error at 'Apple' before '-'
Here is the sparql query
INSERT INTO GRAPH <
http://localhost:8890/Asst> {
<
http://www.dominio.edu#Q1> rdf:type asst:Question; asst:prompt "
adada <span class="Apple-tab-span" style="white-space:pre"> </span>"^^xsd:
string. }
The Blue text is the value of the p:editor. It' has html characters... So I think I need to scape those characters... but how?
Thanks in advance!