function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
ab84ab84 

HTML held in a text field won't render in visualforce

I have a text field in salesforce that holds a piece of HTML code.  The code is very basic:

<i class="icon-ok">

How can I update my visualforce page to run the html and display the ok icon rather than display the code?
 
Patcs_1Patcs_1
Hi

If you want to display the OK Icon in Visualforce page, then you need to store the Image in Static resource and pull the image from there.

P.S - Please mark this as solution by selecting it as best answer if this solves your problem.

Thanks
ManojjenaManojjena
Hi,

I think you need to change the tag,there is no such tag either in html or Vf ad <i> .

You can use either <img> or <apex :image >

Thnaks 
Manoj
KaranrajKaranraj
Normal text field in visualforce will be render as string formate in visualforce so your code in text field won't processed. Instead if you like to display image in a field and use it in your visualforce page then you can create that field as rich text area field and upload the image/icon now you can able to display the image/icon from th field