Replace all & that are not a HTML entity using C#
Posted
by Eddie
on Stack Overflow
See other posts from Stack Overflow
or by Eddie
Published on 2010-04-27T17:20:22Z
Indexed on
2010/04/27
17:23 UTC
Read the original article
Hit count: 353
Basically a dup of this question using php, but I need it for C#.
I need to be able to replace any &
that is not currently not any HTML entity (e.g. &
) before outputting to screen. I was thinking a regex, but I'm not sure if .Net has something built in that will do this.
© Stack Overflow or respective owner