21 questions
0
votes
0
answers
36
views
I cannot decode emojis stored in mysql database [duplicate]
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 ...
1
vote
1
answer
2k
views
Angular 7 - Encoding and Decoding HTML Entities In [(ngModel)]
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 ...
1
vote
0
answers
148
views
Errors Using Python urllib to read html
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(...
0
votes
1
answer
121
views
C# HtmlDecode from XElement (string) is not working
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
0
votes
0
answers
357
views
Decode query parameters for an HTTP call in a Web API
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, ...
0
votes
1
answer
2k
views
.Net Core System.Web.HttpUtility.HtmlDecode not working when the "&" symbol is there
string x = "&Microsoft<?xml version=";
string y = System.Web.HttpUtility.HtmlDecode(x);
Console.WriteLine(y);
Console.ReadLine();
Now the y value is &Microsoft<?xml ...
0
votes
0
answers
162
views
How to stop 'html_entity_decode' reducing font size in smaller screens?
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>
...
0
votes
2
answers
3k
views
How to deserialize a json string containing encoded HTML into JObject?
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.
{
"...
0
votes
0
answers
141
views
HtmlDecode is not working for the following string c#
string testString = "a aa aaa aaaa aaaaa aaaaaa aaaaaaa aaaaaaaa aaaaaaaaa aaaaaaaaaa href=javascript:alert 1 ClickMe";
I used the following code to decode it,
string ...
1
vote
1
answer
2k
views
Correctly removing html entities from a string
I have a problem with removing html entities from strings. I try System.Web.HttpUtility.HtmlDecode, and would like to see being replaced with a regular space. Instead, a weird hex code is ...
1
vote
1
answer
614
views
html_entity_decode not working for some html entities like „
I have the following code:
echo html_entity_decode("„", ENT_QUOTES, "UTF-8");
Result is „ but expected result is „.
I also tried ISO-8859-1 instead of UTF-8, but it's still the ...
0
votes
1
answer
158
views
Can I target multiple divs (with the same class) to escape HTML special entities with javascript?
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 ...
-1
votes
1
answer
474
views
Can not html entity decode of string in laravel5 blade view
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->...
0
votes
1
answer
667
views
HttpUtility.HtmlDecode() exept some specific strings in vb.net
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?
...
0
votes
0
answers
264
views
Html encode decode in asp.net store and fetch
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
<...
0
votes
0
answers
187
views
PHP html_decode/html_entity_decode breaks page with JS
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 ...
0
votes
1
answer
429
views
how get string empty value from html decode asp.net gridview
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 ...
1
vote
1
answer
630
views
C# how to decode html character squared ($sup2)
I am getting a string "lb/in²" (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&...
6
votes
2
answers
7k
views
Convert � � to Emoji in HTML using PHP
We have a bunch of surrogate pair (or 2-byte utf8?) characters such as �� which is the prayer hands emojis stored as UTF8 as 2 characters. When rendered in a browser this string ...
4
votes
2
answers
410
views
Decode HTML 5 Character set
I am unable to decode the following HTMl 5 code 10:00 AM in my c# code, after using HttpUtility.HtmlDecode("10:00 AM"); i get the same Output instead of seried output "10:00 AM".
...
1
vote
1
answer
8k
views
Decode HTML entities `<` and `>` to `<` and `>` respectively
One of our pages pulls content from a database table using the following code:
<?php echo $project['description']; ?>
What I need is for all < and > instances to be replaced with ...