Skip to main content
Filter by
Sorted by
Tagged with
0 votes
0 answers
36 views

I am using ent package for Encode and decode HTML entities in one of my nodejs project. An example conversion is given below var ent = require('ent'); let encodeString = ent.encode( 'Lorem ...
Ajith's user avatar
  • 2,678
1 vote
1 answer
2k views

I am having an issue with encoding and decoding HTML Entities on a textarea using ngModel. The Back-End needs and is sending the ><"&' as HTML Entities. This seems like it would be ...
RooksStrife's user avatar
  • 1,747
1 vote
0 answers
148 views

I am currently having trouble using urllib on python to open links. My code is basically intended to be able to take the link of an article (variable "url"), open the link (page = urlopen(...
Ronit Malde's user avatar
0 votes
1 answer
121 views

I working with a xml file. I get a string from it, and this string is encoding in html; I try to use HttpUtility.HtmlDecode but, it's not working... What am I missing? Screen
Auriane Kalwrynn's user avatar
0 votes
0 answers
357 views

I have a Web API developed in C#, targeting the .NET Framework 4.7.1. It is used by some Angular front-end applications. Some of these applications are sending HTTP DELETE commands to the Web API, ...
Eddie's user avatar
  • 359
0 votes
1 answer
2k views

string x = "&Microsoft&lt;?xml version="; string y = System.Web.HttpUtility.HtmlDecode(x); Console.WriteLine(y); Console.ReadLine(); Now the y value is &Microsoft&lt;?xml ...
Saravanapandian's user avatar
0 votes
0 answers
162 views

I am retrieving body text from the database in phpmyadmin. To remove the html entities I have written the following code: <h4><?php echo html_entity_decode($post['body']); ?></h4> ...
gilesj's user avatar
  • 1
0 votes
2 answers
3k views

I have a json string containing encoded HTML as below which I get after doing a Shopify Liquid escape. I am trying to decode the internal HTML and deserialize this string into a JObject. { "...
Na.B's user avatar
  • 46
0 votes
0 answers
141 views

string testString = "a aa aaa aaaa aaaaa aaaaaa aaaaaaa aaaaaaaa aaaaaaaaa aaaaaaaaaa href=j&#97v&#97script&#x3A;&#97lert 1 ClickMe"; I used the following code to decode it, string ...
Roger's user avatar
  • 11
1 vote
1 answer
2k views

I have a problem with removing html entities from strings. I try System.Web.HttpUtility.HtmlDecode, and would like to see &nbsp; being replaced with a regular space. Instead, a weird hex code is ...
Leonard's user avatar
  • 450
1 vote
1 answer
614 views

I have the following code: echo html_entity_decode("&#132;", ENT_QUOTES, "UTF-8"); Result is &#132; but expected result is „. I also tried ISO-8859-1 instead of UTF-8, but it's still the ...
David's user avatar
  • 3,476
0 votes
1 answer
158 views

My Webflow search results page is rendering html special entities, which I need to render as html. My current javascript takes the content of the first search result, decodes it, & places that ...
jwcole's user avatar
  • 3
-1 votes
1 answer
474 views

I use Php7.0 and Laravel 5.0 and want to initiate a var in javascript on blade page. But html_entity_decode function can not decode the special chars. userName = "{{ html_entity_decode($user->...
Burak Dağlı's user avatar
0 votes
1 answer
667 views

Actually, I wanted to HTMLDecode a text using HttpUtility.HtmlDecode() function and it works properly with whole text, but I want to decode the text except some specific string. How can I do that? ...
Shubhadeep Chattopadhyay's user avatar
0 votes
0 answers
264 views

I have a problem with restricting malicious content in a field which can accept any input from the user. I have to encode that field and save it in the database - see examples: 1st example <...
Usman Asif's user avatar
0 votes
0 answers
187 views

I'm having a little problems trying to print HTML in one page. I have a substr to show the first X chars of the text, and a button to show more. My problem is that if I use html_decode or ...
Tiago's user avatar
  • 663
0 votes
1 answer
429 views

I have a gridview on my asp.net website. In this case, I wanna get value from the gridview row when selected. Here is my code behind when gvMyTask_RowCommand. I tried using if else condition to set ...
aminvincent's user avatar
1 vote
1 answer
630 views

I am getting a string "lb/in&sup2" (which I want to show as lb/in²) from server. I want to decode this and show it in my Xamarin.iOS app. I tried: System.Net.WebUtility.HtmlDecode("lb/in&...
Drunken Daddy's user avatar
6 votes
2 answers
7k views

We have a bunch of surrogate pair (or 2-byte utf8?) characters such as &#55357;&#56911; which is the prayer hands emojis stored as UTF8 as 2 characters. When rendered in a browser this string ...
Tyler F's user avatar
  • 121
4 votes
2 answers
410 views

I am unable to decode the following HTMl 5 code 10&colon;00 AM in my c# code, after using HttpUtility.HtmlDecode("10&colon;00 AM"); i get the same Output instead of seried output "10:00 AM". ...
Rolwin Crasta's user avatar
1 vote
1 answer
8k views

One of our pages pulls content from a database table using the following code: <?php echo $project['description']; ?> What I need is for all &lt; and &gt; instances to be replaced with ...
JoeW's user avatar
  • 588