• hm.klemenc
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 0
    Questions
  • 1
    Replies

I am trying to return a string with Apex tags, but the pointy brackets (<, > ) are being encoded to &lt; and &gt;.


    Example:
    public String getNavString() {
        return '<apex: outputLink value="http://www.google.com/">Google</apex: outputLink>';
    }


    Resulting HTML:
    &lt;apex: outputLink value="http://www.google.com/"&gt;Google&lt;/apex: outputLink&gt;

    Expected HTML:
    <apex: outputLink value="http://www.google.com/">Google</apex: outputLink>


  

Is there a way to make sure that the tag characters are not encoded?

Thank you!

~ Nick

Message Edited by infowelders_ns on 08-27-2009 12:23 PM