Solved

HTML Hyperlink "<" rendering at &lt;

Posted on 2014-04-29
3
209 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
Comment Utility
Try using
&#60; instead of < and
&#62; instead of >
0
 

Author Comment

by:nightshadz
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Suggested Solutions

Introduction The Google Maps API offers various ways to draw dynamic and static maps.  Using a combination of PHP and JavaScript, you can draw active JavaScript maps that allow pan-and-zoom in the client browser window.  You can also draw "static" …
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how add a scalable full-width header using CSS3. Create a new HTML document with an internal stylesheet. Set a tiled background.:  Create a new div and name it Header. Position it with position:absolute at the top…
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

771 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

10 Experts available now in Live!

Get 1:1 Help Now