Unable to load image
Reported by:

site dev help megathread

from here on out, ill post codecel questions or other shit i need help with here and give mbux rewards appropriately

subscribe to the thread if ur interested

!codecels

88
Jump in the discussion.

No email address required.

isn't it because & is a control character? It's used to display all characters which are otherwise reserved for internal use, <, > etc

Jump in the discussion.

No email address required.

The ampersand (&) needs to be escaped in HTML because it's a special character used to introduce an HTML entity. Here's a brief breakdown:

1. HTML Entities: These are used to represent reserved characters in HTML that cannot be used as they are because they have special meanings. For instance, the less-than sign (<) starts a tag. To actually display a less-than sign, you'd use its entity, <.

2. Ampersand's Role: The ampersand itself is used to begin these entities. For example, < for <, > for >, and & for &.

3. Potential for Confusion: If you were to use an ampersand directly and followed it by characters that form a known entity, the browser might interpret it as an entity rather than as the intended text. For example, if you intended to write "M&M's" but wrote it as "M&Ms", a browser might interpret the "&Ms" as an entity (even if it's not a valid one).

4. Safety: By always escaping the ampersand as &, you ensure that the ampersand is always treated as a literal character and not the start of an entity. This reduces the risk of unexpected display issues or potential vulnerabilities.

In summary, the need to escape the ampersand in HTML arises from its role as the initiator of HTML entities. Escaping it ensures clarity and prevents unintended interpretations by the browser.

Jump in the discussion.

No email address required.

I don't know what you said, because I've seen another human naked.

Jump in the discussion.

No email address required.

because of html entities? &nbsp; and so on

Jump in the discussion.

No email address required.

@A where's muh money :#marseychingchongshooter:

Jump in the discussion.

No email address required.

if anyone gets money it would @TafTajQuantum, since his chatGPT comment actually explained

but this isnt a bug tho, its just a simple question lol

Jump in the discussion.

No email address required.

:#marseychingchongitsovergenocide: :#capymerchant!:

Jump in the discussion.

No email address required.

>codescels up whole site

>doesn't know about escape characters

:marseyautism:

Jump in the discussion.

No email address required.

Because of all other escapes like & nbsp;

Jump in the discussion.

No email address required.

Because it has a special meaning. In urls, as a separator and html, as a reference I think.

Jump in the discussion.

No email address required.

Test: &&&

What the frick kind of unescaping code is this site using?

Jump in the discussion.

No email address required.

Link copied to clipboard
Action successful!
Error, please refresh the page and try again.