Solved

compare plain html text

Posted on 2012-03-11
6
366 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 30

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 30

Expert Comment

by:anarki_jimbel
ID: 37707941
0
 

Author Comment

by:johnkainn
ID: 37708730
I was hoping to do this in sql.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
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 30

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

Visualize your virtual and backup environments

Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.

Question has a verified solution.

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

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

738 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