I create a RTF field in form, and I paste some text and then save the document. The text contains “[” and “]” character, When I open the document, the “[” and “]” gone!
I know that domino use “[” and “]” to show HTML code, but I need to display plain text, so I want my “[” and “]” back.
Subject: RE: Why domino eat my “[” and “]” in RTF field?
I suspect there is some custom code on the form deleting these, perhaps in the Querysave event. I would point out that this is a Domino web application, and you can see you had no problem using [ and ] in the body of your post.
Subject: RE: Why domino eat my “[” and “]” in RTF field?
NO. because domino use “” to render HTML code(It means that any string inside “”
will be treat as HTML code in domino
For example, you write “a href="xxxxx">xxx]” in view column formula,
and
open the view in IE, you will see a link in the view column
Subject: RE: Why domino eat my “[” and “]” in RTF field?
It’s not true that any string inside [square brackets] will be treated as HTML. Only if the opening square bracket is followed by a < is it the signal for an HTML escape. As you can see in your last message, you tried to use this sequence of characters, and the application stripped it out because we don’t allow passthru HTML in this forum. But anytime you use the [brackets] without a < they come through just fine.
Subject: RE: Why domino eat my “[” and “]” in RTF field?
But if I need to include “[” “<” in RTF field, how can I do?
For example, I output some domino database’s document using XML, look:
<TITLE><![CDATA"["<The company report 2008><Draft-01>]]></TITLE>
<DBPATH>weboa/abc/flowreport.nsf</DBPATH>
<DOCUNID>78C5062C0E584EEC4825745B004FDFFD</DOCUNID>
<FLOWNAME>Flow Report</FLOWNAME>
<DATETIME>2008-06-01 23:47:57</DATETIME>
I store this text in RTF field, and there is a document’s title is:
<The company report 2008>
I include this title text in " ", and when I open this xml in IE,
DOMINO eat my “[” and xml source is error.
How can I do?!
Subject: Why domino eat my “[” and “]” in RTF field?
Does this also happen if you type those characters in from the keyboard ? (I’m thinking you may have a code-page issue, where the characters from the clipboard are different then the keyboard)