You need to sign in to do that
Don't have an account?
Naishadh
Visual Force HTML tag formatting problem
Hi,
I want to display some text in bold style. I try to store it in differnt way but salesfoce do not parce that tag and display it as it is. Please help!
e.g.
Data in Database :-
Visual Force development for creating <b>new</b> sites.
page Output :-
Visual Force development for creating <b>new</b> sites. (It should display new as bold.)
please help!
you may also want to read about using escape="false" on outputText
escape A Boolean value that specifies whether sensitive HTML and XML characters should be escaped in the HTML output generated by this component. If you do not specify escape="false", the character escape sequence displays as written. Be aware that setting this value to "false" may be a security risk because it allows arbitrary content, including JavaScript, that could be used in a malicious manner.
All Answers
Just print the value in the database and see what exactly is the value stored...
Use system.debug(Variablename)... Let me know how the value is stored, it will give an idea of what's going wrong where
Regards,
It show the same string.
i.e. string in database
On an account record, if you click on the <b>New</b> button on the Contacts related list, what happens?
system.debug output
On an account record, if you click on the <b>New</b> button on the Contacts related list, what happens?
Hi ,
Can you give your VF code snippets for more clarifications abt error .
Here is code.
Hi ,
you are using <apex:outputtext /> so it will always display values as text.
so dont use it . Use your Html code in div just like <div>{!q.name} </div> .
Kirtesh
you may also want to read about using escape="false" on outputText
escape A Boolean value that specifies whether sensitive HTML and XML characters should be escaped in the HTML output generated by this component. If you do not specify escape="false", the character escape sequence displays as written. Be aware that setting this value to "false" may be a security risk because it allows arbitrary content, including JavaScript, that could be used in a malicious manner.
I have an html page (<html> .... </html>) that i get by using a webservice call.
how do i display this page in SFDC?
<apex:page controller="myController">
<apex:outputText value="{!displayResult}" escape="false" />
</apex:page>
This shows on screen as <html>...</html>
<apex:page controller="myController"> <apex:outputText value="{!displayResult}" escape="true" /> </apex:page>
This shows on screen as <html> ..... </html>