Solved

HTML Hyperlink "<" rendering at &lt;

Posted on 2014-04-29
3
216 Views
Last Modified: 2014-05-11
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 "&lt;a href="https://www.google.com">Google&lt;/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

0
Comment
Question by:nightshadz
3 Comments
 
LVL 34

Accepted Solution

by:
Dan Craciun earned 250 total points
ID: 40030011
Try using
&#60; instead of < and
&#62; instead of >
0
 

Author Comment

by:nightshadz
ID: 40030071
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>
0
 
LVL 18

Assisted Solution

by:Rartemass
Rartemass earned 250 total points
ID: 40031147
Does the text editor have a replace function?
If so get it to find &lt; and replace it with <

Can you use a different editor? Even notepad will work. If you are looking for a text editor I recommend Notepad++.
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
css, html 5 41
Poster Video HTML 5 Scale to fit video 3 47
maps stopped work unsure why 7 33
Button and js nou working 3 6
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

815 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now