regular expression for hyperlink tag
-
Hi all, Please help me with this. I want to remove html tags, but I got a problem in this specific case the source string has something like
<a onmouseover='This is text that has less than and greater than characters <> ... ' >I want to extract text here only</a>
How to get the text that is between open/close <a> tags <a>...</a>? Thank you very much
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam
-
Hi all, Please help me with this. I want to remove html tags, but I got a problem in this specific case the source string has something like
<a onmouseover='This is text that has less than and greater than characters <> ... ' >I want to extract text here only</a>
How to get the text that is between open/close <a> tags <a>...</a>? Thank you very much
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam
if you are asking about javascript, anchorId.innerHTML
Arun Jacob http://codepronet.blogspot.com/
-
Hi all, Please help me with this. I want to remove html tags, but I got a problem in this specific case the source string has something like
<a onmouseover='This is text that has less than and greater than characters <> ... ' >I want to extract text here only</a>
How to get the text that is between open/close <a> tags <a>...</a>? Thank you very much
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam
As you have mentioned that you have a Srource String which contans the whole string that you have pasted. In that case, I would assume that you have this problem in code behind. Please check whether this can be done in your case. ( remember inside the string greate than and less than should be converted to equivalent valid xml char .)
String sXml = "<a onmouseover='This is text that has less than and greater than characters &gt;&lt; ... ' >I want to extract text here only</a>"; XmlDocument xObj = new XmlDocument(); xObj.LoadXml(sXml); MessageBox.Show(xObj.DocumentElement.ChildNodes\[0\].InnerText);
Thanks, Arindam D Tewary
-
As you have mentioned that you have a Srource String which contans the whole string that you have pasted. In that case, I would assume that you have this problem in code behind. Please check whether this can be done in your case. ( remember inside the string greate than and less than should be converted to equivalent valid xml char .)
String sXml = "<a onmouseover='This is text that has less than and greater than characters &gt;&lt; ... ' >I want to extract text here only</a>"; XmlDocument xObj = new XmlDocument(); xObj.LoadXml(sXml); MessageBox.Show(xObj.DocumentElement.ChildNodes\[0\].InnerText);
Thanks, Arindam D Tewary
Thanks, but I want to use regular expression instead of using xmlDocument. have any other idea?
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam
-
if you are asking about javascript, anchorId.innerHTML
Arun Jacob http://codepronet.blogspot.com/
No, I am asking in code behind (C# is my prefer). Thanks.
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam
-
Hi all, Please help me with this. I want to remove html tags, but I got a problem in this specific case the source string has something like
<a onmouseover='This is text that has less than and greater than characters <> ... ' >I want to extract text here only</a>
How to get the text that is between open/close <a> tags <a>...</a>? Thank you very much
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam
Hello everybody, anyone can help me on this? :( Thanks so much
8x Solutions Inc. - Software Outsourcing Company in HCMC, Vietnam