Questions tagged [html-entities]

HTML entities provide a method of entering characters that cannot be expressed in the document's character encoding or that cannot easily be entered on a keyboard.

Filter by
Sorted by
Tagged with
0 votes
1 answer
29 views

v-if not work with HTML Entities string in expression

When I compare 2 equal text in v-if, if text is a HTML entities string like '&lt ;' or '&nbsp ;', it will always return false. I am using vue 3 <script > export default { ...
Thaivan Luat's user avatar
-3 votes
0 answers
34 views

Special characters are getting converted into html entities in source code for wordpress website, what to do? [closed]

In wordpress website all the special characters are converted into html entities if I open source code, so I am facing issue in SEO Frontend:- Nykaa's Inception Backend (source code):- Nykaa&#8217;...
Nikhil Bawaskar's user avatar
0 votes
1 answer
48 views

Browser encoding of double quotes

I am learning about character encoding but I am slightly confused now. I observe the following behavior both in Chrome and Firefox. The following HTML code snippets print it works as soon as the page ...
mrang's user avatar
  • 3
0 votes
0 answers
29 views

Rendering Dynamic HTML in React Froala WYSIWYG is not Working

I'm trying to use the React version of the Froala Editor in my application. Since this will be used in several CRUD operations, I decided to create a component to be used in all my create and update ...
Kirasiris's user avatar
  • 543
0 votes
0 answers
40 views

Appending UTF-8 strings to DOMNode in PHP

I have decided that in my particular project I want to deliver the CSS with the HTML using PHP. My CSS and HTML are collected from various UTF-8 files. The HTML encoding is preserved in the output, ...
Christopher Kellett's user avatar
0 votes
0 answers
44 views

Can I express in HTML a character that doesn't have a Unicode value?

Is it possible to express in HTML a character that doesn't have a Unicode value? It would be fine as HEX, HTML Code or Entity, or anything a browser can read. I good example of this would be ...
Quinn Keaveney's user avatar
0 votes
1 answer
33 views

PHP Curl returning url stripping out &times (decoding/encoding)

I have searched and searched for a solution but cannot find it. I have a curl post request and that request returns a url. The url has a parameter in it named timestamp... It is converting the &...
user982853's user avatar
  • 2,480
0 votes
0 answers
32 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 ...
Ajith's user avatar
  • 2,536
1 vote
1 answer
82 views

Shopware 6 Twig - HTML Entity decode

I try to decode html entities like &amp; which are inside the products description and should be decoded for Feedexport. As the entities are already inside of the description the |raw filter will ...
Michael_sfx's user avatar
0 votes
1 answer
52 views

Attempting to convert Latin characters using htmlentities

I'm attempting to html encode various names, which are from all over the world. The system this is eventually going into cannot handle the raw characters itself, so I have to encode them first. ...
Justin's user avatar
  • 155
-5 votes
1 answer
73 views

Using Html entities in a terniry oparator in js

I have troubles adding a white space in a ternary oprator. I'm trying to achieve something like this: {condition ? "text" + " " : "text"} or with the html entity   for ...
VincentAb's user avatar
2 votes
2 answers
81 views

&nbsp; issue when in html attribute

Code first. <div data-a="a b" data-b="a&nbsp;b" id="test"></div> <div data-a="a<b" data-b="a&lt;b" id="test2">&...
QinBX's user avatar
  • 33
0 votes
1 answer
269 views

TypeError: Entities is not a constructor

A JavaScript HTTP Trigger Azure Function posts activity in an online customer community in Slack. It has worked successfully for years but upon upgrade from version ~2 to ~4 has begun throwing an ...
hcdocs's user avatar
  • 1,108
0 votes
0 answers
34 views

How to insert html character encodings into Doxygen?

I'd really love to be able to insert, for instance, &#8203; or <wbr> or any other codepoint that will make the documentation more expressive or look nicer. For instance the word break ...
Eyelash's user avatar
  • 1,790
0 votes
0 answers
38 views

Angular <textarea> FormControl & HTML entities

I am likely missing something painfully obvious, so grab your popcorn and get ready for a laugh. I am currently struggling with handling HTML entities, specifically, getting Angular to render them ...
Narayan's user avatar
  • 55
-1 votes
2 answers
75 views

How to split at HTML entities

How can I split the text in <p>Hello&emsp;World!</p> into Hello and World? I tried: document.querySelector('p').innerHTML.split(/&emsp/); but it isn't working
hayata_suenaga's user avatar
1 vote
1 answer
321 views

Curl converts '@sha256' into '&#64;sha256'

I am trying to curl some text displayed on a webpage which include: repo@sha256 When I run curl -s https://website the corresponding output is: repo&#64;sha256 Why is this, and is there a ...
user21113865's user avatar
-2 votes
1 answer
30 views

PHP prevent html entity creation at string concatenation

How can i prevent that PHP converts a recognized part of a string to an html-entity? So e.g. lets say i have to concat parts together to an url, like: echo '&' . 'section=' . '<br>'; $a = '&...
Regda's user avatar
  • 11
0 votes
1 answer
105 views

Decode XML/HTML entities from iso-8859-1 charset in NodeJS

I'm receiving polish text from a SOAP action that has the polish diacritics encoded as XML entities, but as far as I can tell, they are not encoded in UTF-8 but ISO-8859-1 and I'm struggling to decode ...
veodko's user avatar
  • 55
1 vote
1 answer
224 views

React Native - Decode HTML Entities

I have a react native expo app, and trying to decode some html entities. I'm attempting to use the html-entities package, but it doesn't seem to work because I am mapping through a state component/...
Rashon's user avatar
  • 75
1 vote
1 answer
661 views

Are there unicode symbols for entering basic electrical symbols from multimeter?

I have a markdown file that has some of notes related to basic testing with a multimeter. I know I can use the capital Omega symbol (U+03A9) for Ohms but for a lot of the other symbols, I haven't ...
zpangwin's user avatar
  • 1,132
2 votes
3 answers
273 views

Efficiently clean HTML entities from a complex JSON file in PySpark

I am analysing some JSON data in Palantir Foundry using PySpark. The source is a 30MB uploaded JSON file containing four elements, one of which holds a table of some 60 columns and 20,000 rows. Some ...
JRI's user avatar
  • 1,776
0 votes
1 answer
259 views

Use HTML entities in my <script> block in Vue.js

I want to use the HTML-Symbols &#9650 and &#9660 that stand for "arrow up" and "arrow down" in the <script> section of my Vue.js component. I know that something ...
Petar Yakov's user avatar
0 votes
2 answers
971 views

How to properly encode html entities in emails? e.g. &nearr; for Gmail

So I modified some emails I send to get rid of images and replace them by special unicode characters. For example I had an arrow image and replaced it with &nearr; while wrapping it in a <span&...
user avatar
1 vote
0 answers
253 views

Uncaught TypeError: Entities is not a constructor in ('html-entities').XmlEntities;

const Entities = require('html-entities').XmlEntities; const entities = new Entities(); getting Uncaught TypeError: Entities is not a constructor how to fix this? module-> html-entities | ...
SANIKAVA's user avatar
1 vote
0 answers
33 views

PHP: DOMDocument::loadHTML(): doesn't permit & in a url

We're trying to use DOMDocument to modify some HTML, but when it hits image/link URL's with '&' it throws an error: DOMDocument::loadHTML(): htmlParseEntityRef: no name in Entity, line xyz Thing ...
unixandria's user avatar
0 votes
0 answers
532 views

Parse error for Handlebars partial: {{> interpreted as {{&gt;

I'm following this guide to use partials in my web project: https://handlebarsjs.com/examples/partials/basic.html In the .html file, I was using this just fine (using Tailwind CSS): {{#each pages}} &...
car1sle's user avatar
0 votes
1 answer
839 views

HTMLEncode and HTMLDecode not working when data is bound to asp:GridView

I have a weird observation with respect to HttpUtility.HTMLEncode and HttpUtility.HTMLDecode when encoded data is bound to a grid and later decoded on rowdatabound event. Here is some code for ...
Vivek Shukla's user avatar
0 votes
0 answers
192 views

HTML entities not rendering correctly on mobile browser

We are using the font Proxima Nova. Somehow on mobile browsers (works fine on desktop), some HTML entities do not render correctly. Ex nbsp renders as É, ' renders as Õ. Has it something to do with ...
Z.Zhe's user avatar
  • 5
1 vote
1 answer
1k 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 ...
RooksStrife's user avatar
  • 1,657
1 vote
1 answer
77 views

Special char jquery

I have a problem with &gt; and jquery datatable shows '>' fine but when I click on the row I get the character &gt; and I'm desperate. Any solution? $('#sample tbody').on('click', 'tr', ...
Francisco José Gimeno Esteban's user avatar
4 votes
1 answer
648 views

Left and right quotation mark render as unexpected character in Safari

I have a simple piece of text like so: <h1 class="intro-text" id="main-title">&lsquo;AN ABRAM&rsquo;</h1> This should render the following output (this is correct in ...
FutureCake's user avatar
  • 2,694
1 vote
1 answer
35 views

How do I line break while also disabling code being executed in textarea?

I have PHP set up for a textarea that prints text from a directory to separate divs. <?php $content = implode("<br /><hr class='separator'>",array_map(function ($v) { ...
Tecior's user avatar
  • 21
1 vote
1 answer
145 views

Reading html content with without escaping? [duplicate]

I am trying to read the html content using innerHTML. It seems to convert the '<' in the text content to '&lt;' . I would rather not to. Is there anything in JS that would allow me to render as ...
ullas kakanadan's user avatar
0 votes
1 answer
69 views

Named entities in Reportlab

I just learned that Reportlab will support named entities like &alpha; and &approx; in paragraph text. Exactly which entities will it support? Here's an example of how it works: from reportlab....
Don Kirkby's user avatar
  • 54.5k
-1 votes
1 answer
74 views

BeautifulSoup4 doesn't read &approx; as an HTML entity

This seems familiar; why does &approx; not get picked up by html.parser? >>> from bs4 import BeautifulSoup >>> for html in ['hey &lsquo; 3','hey &pi;','hey &approx; 3'...
Jason S's user avatar
  • 186k
0 votes
1 answer
202 views

problems displaying html characters

I'm building a sign-in/up form and I have problems displaying HTML characters. When a user signs up, I use this function for the sign-up data and then insert it into the database. function clearInput( ...
anyone's user avatar
  • 39
0 votes
0 answers
29 views

My text content auto entities html tag after submit

enter image description here I have strange issue with my text content on text editor field. When I have not much content, it work correct. But when I input a lot of content on many fields, the ...
Bùi Văn Dương's user avatar
2 votes
1 answer
3k views

How to correctly render html entities assigned to variables in React?

In React, the code below correctly renders a double quotation mark (") to the page: export default Character() { return ( <p>&quot;</p> // renders as the symbol " ) } ...
S4muele's user avatar
  • 23
-2 votes
1 answer
1k views

how to put < > and double space or multiple space in my html tag or in my element [duplicate]

how can I put <>'' or more space in html tag <> this is my code that have problem. <div> <p> > or < </p> </div>
mohsen Ghalandar's user avatar
0 votes
1 answer
150 views

NodeJS converts passed html content to entities by default

In my website I want to have a tree of categories. To get this to work, I need to arrange them in a parent-child tree through a recursive loop. What I did was to fetch the category data from the ...
Yash Kejriwal's user avatar
0 votes
0 answers
64 views

How to check if the special character I'm seeing is indeed what I'm seeing or it's just an HTML entity in disguise?

I have a div containing a string which is a Cypher query: <div id="foo">match (n)-[r]-() where n.gid='Cx' return n,r</div> Since the ' character will be encoded as &#8217;, ...
Ooker's user avatar
  • 2,180
1 vote
1 answer
774 views

How to properly add the ampersand to the title tag

I have a title that includes the ampersand (&) but not sure how to add it properly so the web can read it. if it write it like the <title> something something & something </title> ...
Lee's user avatar
  • 11
0 votes
1 answer
297 views

CheerioJS to parse data on script tag

I've been trying to parse the data that is in the script tag using cheerio however It's been difficult for the following reasons. Can't parse string that is generated into JSON because of html-...
Gracias Peterson Claude's user avatar
1 vote
1 answer
310 views

Groovy (or Java): How to escape double quotes only within HTML inner text, not in attributes

I am using a HTML rendering engine based on Groovy within a WCM system. I now have the use case, that the user enters rich text content within a TinyMCE-based form, which looks like this: <p>...
Windwalker's user avatar
  • 1,925
1 vote
1 answer
2k views

Convert HTML entities in Json back to characters

Problem and original data I have a json data which contain some HTML entities to encode some special characters (mostly from French language, like “é”, “ç”, “à”, etc.) and for html tags. This is a ...
ag_1812's user avatar
  • 157
1 vote
1 answer
139 views

How to Insert dot(.) again in textarea, if we have created a function to replace it?

I have created a function to replace dot(.) into purnviraam, it works fine. but If we need to insert " . " again in textarea, I have created a button neart textarea with function. it ...
Mohammad Suhail's user avatar
1 vote
1 answer
362 views

Compare HTML encoded text to plain text in PHP

I have two same strings but one is having HTML entities and the other is its equivalent character: $s1 = "&lsquo;Dragon&rsquo;"; $s2 = "'Dragon'"; Is there any way I can ...
saurabh yadav's user avatar
-3 votes
1 answer
508 views

How do I search for invisible characters in a database table column?

The database table in question has a unique username column. When the usernames are listed in phpMyAdmin or SqlYog, a duplicate for at least one username appears. When the username is displayed on a ...
Geoffrey's user avatar
  • 5,417
0 votes
0 answers
99 views

How to change &#2404; again into "।" that is Hindi Full Stop Character (Purnviram)

This block of code gives me code &#2404; instead of "।", so how to change &#2404; again into "।". "।" is Hindi Full Stop Character known as Purnviram. This code ...
Mohammad Suhail's user avatar

1
2 3 4 5
28