Hi Robert,
I forgot to mention that the ui:str must be well-formed (X)HTML, and the
example below cannot be parsed (e.g. " is not closed). If this happens,
the string will be inserted verbatim and therefore appear using <
quotes etc.
HTH
Holger
On 3/21/2014 0:49, Wiethorn, Robert wrote:
Hi Holger,
Thanks for getting back.
I ask because I'm not getting in the browser (IE/Firefox) what I think
I should be seeing.
The raw data (stored in triples) already has HTML as part of its values.
When I render the data on the screen, the tool is not letting the
browser interpret the tags.
The data is similar to this: " ><SPAN style="FONT-FAMILY:
'Verdana','sans-serif'; FONT-SIZE: 10pt; color:blue; >blah blah blah,
some more blah. Regarding <b>Blah</b> , DG FC could be blahing the
widget, RO must be uploaded by R&D-PR.</SPAN>
What I want to see in the browser would be= blah blah blah, some more
blah. Regarding *Blah*, DG FC could be blahing the widget, RO must
be uploaded by R&D-PR.
I checked the ViewSource. What I saw, is that TBC is replacing the
Greater-Than & Less-Than signs {> ; < } with: > < respectively.
Goal: if my triples values have some HTML/Style as part of it, how to
let TBC leave it alone so it will be rendered as HTML.
Thanks,
Rocky
*From:*[email protected]
[mailto:[email protected]] *On Behalf Of *Holger Knublauch
*Sent:* Wednesday, March 19, 2014 6:43 PM
*To:* [email protected]
*Subject:* Re: [topbraid-users] ui:parse usage
Hi Robert,
you can see an example of this in EVN's rich text editors, where users
can also enter HTML markup. In read-only/display mode, these values
are rendered using swa:RichTextViewer, which boils down to exactly
your code:
<ui:parse ui:str="{= ?object }"/>
Note that this may lead to code injection attacks etc, but that's
hopefully under your control.
Did you run into problems with this, or why did you ask?
Thanks,
Holger
On 3/19/2014 23:42, Wiethorn, Robert wrote:
Hi,
I'm trying present data on webpages.
One of the data fields (from a legacy) system has markup entangled
in the text values. (it was probably initially copied off a browser)
We would like the html to be rendered in the browser when displayed.
Here is an example of the following:
?blah=
<P style="MARGIN: 0cm 0cm 0pt" class=MsoNormal><SPAN
style="FONT-FAMILY: 'Verdana','sans-serif'; FONT-SIZE: 10pt;
mso-ansi-language: EN-US" lang=EN-US>blah blah blah, some more
blah. Regarding <b>Blah</> ,DG FC could be blahing the widget,
RO must be uploaded by R&D-PR.</SPAN><SPAN
style="mso-ansi-language: EN-US" lang=EN-US><?xml:namespace prefix
= o ns = "urn:schemas-microsoft-com:office:office"
/><o:p></o:p></SPAN></P>
I tried:
<tr>
<td>{= ?blah}</td>
<td>
<ui:parse ui:str="{= ?blah}"/>
</td>
</tr>
Is this how UI:parse is used?
Thanks,
Rocky
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include
Enterprise Vocabulary Network (EVN), TopBraid Composer, TopBraid
Live, TopBraid Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
<mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise
Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid
Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected] <mailto:[email protected]>
To unsubscribe from this group, send email to
[email protected]
<mailto:[email protected]>
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise
Vocabulary Network (EVN), TopBraid Composer, TopBraid Live, TopBraid
Insight, SPARQLMotion, SPARQL Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google
Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected]
<mailto:[email protected]>.
For more options, visit https://groups.google.com/d/optout.
--
-- You received this message because you are subscribed to the Google
Group "TopBraid Suite Users", the topics of which include Enterprise Vocabulary
Network (EVN), TopBraid Composer, TopBraid Live, TopBraid Insight, SPARQLMotion, SPARQL
Web Pages and SPIN.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/topbraid-users?hl=en
---
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.