Link to home
Start Free TrialLog in
Avatar of nightshadz
nightshadzFlag for United States of America

asked on

HTML Hyperlink "<" rendering at <

I'm using an editor (seems like a Rich Text editor) within our HR application Lawson to add some HTML to format text. HTML isn't allowed in the editor itself so I am adding it in via a back-end process. It renders HTML tags like tables and lists, but when I try to add a hyperlink it gets rendered as "<a href="https://www.google.com">Google</a>"

This causes the rest of the page to display all HTML tags with no formatting. Hopefully the before/after change code sections are readable.

Before changes
<div class="disabledTextAreaRTF " >
 <p style="margin-top: 0"> ...text...</p>    
<p style="margin-top: 0">      
<u>Gender </u>    
</p>    <p style="margin-top: 0">      Please select from the drop-down list below:    </p>          </div>

Open in new window


After changes
<div class="disabledTextAreaRTF " >
 
            <pre >
 
<br/><br/><br/>&lt;p style="margin-top: 0"><br/>...text... &lt;/p><br/>    &lt;p style="margin-top: 0"><br/>      &lt;u>Gender &lt;/u><br/>    &lt;/p><br/>    &lt;p style="margin-top: 0"><br/>      Please select from the drop-down list below:<br/>    &lt;/p><br/><br/>&lt;a href="www.google.com">Google&lt;/a><br/>              </pre>
        </div>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of nightshadz

ASKER

It still turns the entire bit into plain text as shown when I use those values.

As an added note when I use <a href="" > and view the source it seems to like the ">" symbol but always converts "<" to &lt;

<p style="margin-top: 0">...text...  </p>    <p style="margin-top: 0">      <u>Gender </u>    </p>    <p style="margin-top: 0">      Please select from the drop-down list below:    </p><a href="www.google.com">Google</a>
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial