Solved

HTML help

Posted on 2007-03-31
9
234 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&quot;&gt;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 142

Expert Comment

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

now, how do you write that html?
0
 

Author Comment

by:data-nova
Comment Utility
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&quot;&gt;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
Comment Utility
Writing with what? Delphi?
0
 

Author Comment

by:data-nova
Comment Utility
yes writing from delphi.
0
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

 
LVL 142

Expert Comment

by:Guy Hengel [angelIII / a3]
Comment Utility
but how?
0
 

Author Comment

by:data-nova
Comment Utility
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
Comment Utility
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
Comment Utility
Forced accept.

Computer101
EE Admin
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

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.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
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