nightshadz
asked on
HTML Hyperlink "<" rendering at &lt;
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
After changes
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>
After changes
<div class="disabledTextAreaRTF " >
<pre >
<br/><br/><br/><p style="margin-top: 0"><br/>...text... </p><br/> <p style="margin-top: 0"><br/> <u>Gender </u><br/> </p><br/> <p style="margin-top: 0"><br/> Please select from the drop-down list below:<br/> </p><br/><br/><a href="www.google.com">Google</a><br/> </pre>
</div>
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
As an added note when I use <a href="" > and view the source it seems to like the ">" symbol but always converts "<" to <
<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>