This is a migrated thread and some comments may be shown as answers.

Html code corrupted by quotation marks

2 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Juan
Top achievements
Rank 1
Juan asked on 01 Nov 2012, 04:47 PM
Hi everyone,

I'm having a problem with an anchor with quotation marks into the InnerText, for example:

<A id=classs36 title="This is my hyperlink " href="http://www.google.com" code? html? my? in? damaged>This is my hyperlink "damaged" in my html code</A>
 
As you can see, there are quotation marks inside the inner text and inside the title attribute, I think these quotation marks are causing the corruption in the anchor.

When I see it on IE the code looks good, I haven;t tried in other browsers because the sit e is only supported for IE.

Do you have any idea of how can i handle this?
Please let me know asap,

Thanks in advance!
Juan

2 Answers, 1 is accepted

Sort by
0
Juan
Top achievements
Rank 1
answered on 01 Nov 2012, 06:25 PM
Just adding more information...

This problem is only with "straight quotes", not with curly quotes.
The way that Internet Explorer show the straight quotes is replacing them with a single quote, could this be possible with Telerik Testing Framework?

0
Plamen
Telerik team
answered on 07 Nov 2012, 05:51 PM
Hello Juan,

I am not sure how Telerik Testing Framework is involved in the issue you are describing. Could you please provide more information? A Jing video demonstrating the issue will significantly help us to better understand what is happening.

Also, when using special characters like quotation marks, in order to make them show up on your pages, you need to use a special set of codes called character entities, which you insert into your HTML code and which your browser will display as the corresponding symbols or characters you want.

For example, when you are using quotation mark in your html code you have to use - &quot;
  • This is my hyperlink &quot;damaged&quot; in my html code

Here's a list of all special characters and character entities in html:
http://www.degraeve.com/reference/specialcharacters.php
 

Regards,

Plamen
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Juan
Top achievements
Rank 1
Answers by
Juan
Top achievements
Rank 1
Plamen
Telerik team
Share this question
or