Solved

compare plain html text

Posted on 2012-03-11
6
357 Views
Last Modified: 2012-08-14
In a table I have text that sometimes is html, for example "ö" becomes "ö"
I need to compare this with plain text. How can I do that?
0
Comment
Question by:johnkainn
  • 3
  • 2
6 Comments
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 37707909
Could you please tell more about your task?

Do you need an external tool to compare? Or you want to to do that in your code pro grammatically?
Examples?
What outcome you want from your examples?
0
 
LVL 29

Expert Comment

by:anarki_jimbel
ID: 37707941
0
 

Author Comment

by:johnkainn
ID: 37708730
I was hoping to do this in sql.
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 25

Expert Comment

by:jogos
ID: 37708752
>>I was hoping to do this in sql.<<

That can by making a CLR-function of the codeproject-compare with the things you need.

Pure T-sql you can use replace for all characters you think necessary .... and after gone trough the 'htmlchar-replacer' you can compare the strings.

replace(htmlString, 'ö', '&ouml;')
or the other way
replace(htmlString, '&ouml;', 'ö')
0
 
LVL 29

Assisted Solution

by:anarki_jimbel
anarki_jimbel earned 250 total points
ID: 37711535
>>I was hoping to do this in sql.<<

You may try to do as in the previous post but I believe it is not reliable way.
And it would be nice if you put your requirements upfront...
0
 
LVL 25

Accepted Solution

by:
jogos earned 250 total points
ID: 37711869
I agree this is not something where T-sql is made for ... that's why I suggested to look at linked sollution and when necessary implement it as CLR
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

759 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

23 Experts available now in Live!

Get 1:1 Help Now