Solved

HTML help

Posted on 2007-03-31
9
237 Views
Last Modified: 2010-04-05
from my program i am trying to write into a HTML text area on a webpage.
I am trying to write some text and make that as a link

but if i write like this
<a href="http://www.google.com">click here</a>

then when the page is posted it ends up looking like this
&lt;a href=&quot;http://www.google.com">click here&lt;/a&gt;

how do i write that line so that it appears like a proper link on the webpage?
0
Comment
Question by:data-nova
9 Comments
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18828861
in short:
<a href="http:// .... ">click here</a>

now, how do you write that html?
0
 

Author Comment

by:data-nova
ID: 18828874
I write it as
<a href="http:// .... ">click here</a>

but it ends up looking like this
&lt;a href=&quot;http://www.google.com">click here&lt;/a&gt;

the < ,> etc gets converted to HTML characters.
I dont want that happen. I just want "click here" to appear and that should be a link , so that when it is clicked the website is opened
0
 
LVL 29

Expert Comment

by:rdivilbiss
ID: 18829003
Writing with what? Delphi?
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:data-nova
ID: 18829012
yes writing from delphi.
0
 
LVL 143

Expert Comment

by:Guy Hengel [angelIII / a3]
ID: 18829017
but how?
0
 

Author Comment

by:data-nova
ID: 18829082
by copying that string as text . I use IHTMLDocument2 in delphi

even if i open for example yahoo mail and type in directly
<a href="http://www.google.com">click here</a>
then it comes that way instead of as a clickable link.

now lets say
without using the "create link" button on top of yahoo mail is there any way to type a message directly into the yahoo message text area which will make a clickable link when the receiver gets that email ?
0
 
LVL 4

Accepted Solution

by:
cheesygit182 earned 125 total points
ID: 18830698
I might be missing the point here, but I think the program you are typing html code into doesn't realise you are trying to type html. Therefore, it automatically escapes the html tags with replacements,
eg;
<> becomes &lt;&gt;

the program is probably WYSIWYG(what you see is what you get), so it doesn't expect you to know any html.

As for yahoo webmail, no. Again, when you type text into the email message box, it doesn't allow html. So, if you type html, [eg: <a href="http://www.google.com">google</a>], the recipient of the email will see exactly what you typed in: <a href="http://www.google.com">google</a>.........

Whereas, if you click the "create link" button, the yahoo webmail script(s) insert the html code for you, without you seeing it.

Remember, there is a large divide between people who have bothered to understand a bit of html, and people who like to click buttons like "BOLD" and "FONT" and have it all done for them. The majority of web users fit into the second category.... :(

~cheesygit182
0
 
LVL 1

Expert Comment

by:Computer101
ID: 21156533
Forced accept.

Computer101
EE Admin
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Make Session back to empty 9 30
Html value of radio 14 29
asp Google Map 2 32
Adding items to a C# list incrementally 5 33
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
Is your Office 365 signature not working the way you want it to? Are signature updates taking up too much of your time? Let's run through the most common problems that an IT administrator can encounter when dealing with Office 365 email signatures.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

838 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