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.
1,355
questions
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 '< ;' or '  ;', it will always return false. I am using vue 3
<script >
export default {
...
-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’...
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 ...
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 ...
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, ...
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 ...
0
votes
1
answer
33
views
PHP Curl returning url stripping out × (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 &...
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 ...
1
vote
1
answer
82
views
Shopware 6 Twig - HTML Entity decode
I try to decode html entities like & 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 ...
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. ...
-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 ...
2
votes
2
answers
81
views
issue when in html attribute
Code first.
<div data-a="a b" data-b="a b" id="test"></div>
<div data-a="a<b" data-b="a<b" id="test2">&...
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 ...
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, ​ or <wbr> or any other codepoint that will make the documentation more expressive or look nicer.
For instance the word break ...
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 ...
-1
votes
2
answers
75
views
How to split at HTML entities
How can I split the text in <p>Hello World!</p> into Hello and World?
I tried:
document.querySelector('p').innerHTML.split(/&emsp/);
but it isn't working
1
vote
1
answer
321
views
Curl converts '@sha256' into '@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@sha256
Why is this, and is there a ...
-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 = '&...
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 ...
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/...
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 ...
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 ...
0
votes
1
answer
259
views
Use HTML entities in my <script> block in Vue.js
I want to use the HTML-Symbols ▲ and ▼ that stand for "arrow up" and "arrow down" in the <script> section of my Vue.js component. I know that something ...
0
votes
2
answers
971
views
How to properly encode html entities in emails? e.g. ↗ 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 ↗ while wrapping it in a <span&...
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 | ...
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 ...
0
votes
0
answers
532
views
Parse error for Handlebars partial: {{> interpreted as {{>
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}}
&...
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 ...
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 ...
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 ...
1
vote
1
answer
77
views
Special char jquery
I have a problem with > and jquery datatable shows '>' fine but when I click on the row I get the character > and I'm desperate.
Any solution?
$('#sample tbody').on('click', 'tr', ...
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">‘AN ABRAM’</h1>
This should render the following output (this is correct in ...
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) {
...
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 '<' .
I would rather not to. Is there anything in JS that would allow me to render as ...
0
votes
1
answer
69
views
Named entities in Reportlab
I just learned that Reportlab will support named entities like α and ≈ in paragraph text. Exactly which entities will it support?
Here's an example of how it works:
from reportlab....
-1
votes
1
answer
74
views
BeautifulSoup4 doesn't read ≈ as an HTML entity
This seems familiar; why does ≈ not get picked up by html.parser?
>>> from bs4 import BeautifulSoup
>>> for html in ['hey ‘ 3','hey π','hey ≈ 3'...
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( ...
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 ...
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>"</p> // renders as the symbol "
)
}
...
-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>
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 ...
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 ’, ...
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>
...
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-...
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>...
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 ...
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 ...
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 = "‘Dragon’";
$s2 = "'Dragon'";
Is there any way I can ...
-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 ...
0
votes
0
answers
99
views
How to change । again into "।" that is Hindi Full Stop Character (Purnviram)
This block of code gives me code । instead of "।", so how to change । again into "।". "।" is Hindi Full Stop Character known as Purnviram. This code ...