+ Start a Discussion
Vinnie BVinnie B 

OutputLink, and other HTML, getting rendered with escaped characters

I'm new to VF and I'm assuming (hoping!) that this is a simple question.

I'm trying to set a simple HTML link in a VF page.  I'm using code like:
 
<apex:outputLink value="http://www.cnn.com"> 
    here</apex:outputLink>
Looking at the HTML source of the rendered page I see:

&lt;apex:outputLink value="https://www.cnn.com"&gt; 
    here&lt;/apex:outputLink&gt;.
This shows the 'here' with the appropriate link, but the URL is also showing to the user after that.

First, why are the lesser and greater signs escaped?  Secondly, I'm assuming there's got to be a way to include a simple link that doesn't show the URL itself.

Again, I'm pretty good with Apex but just getting into VF.  This is likely some basic concept of VF that I'm missing.

Thanks!!


Hargobind_SinghHargobind_Singh
Hi Vinnie B, 

Maybe seeing the code above and below these lines would help someone find out the problem. Can you post the code of your page ?