9

There are three very similar tags:

These all seem to describe the same thing: the method of typing characters using an ampersand and a semicolon (e.g.,  ) described on the tag wiki for html-entities.

Proposal: these tags should be merged, with synonyms created, into one tag with the current wiki for .

7
  • 2
    Not an SME– is "character-entities" too generic? Or is that a formal name for what "html entities" intends to refer to? Just want to make sure the final tag name is still recognizable to folks.
    – zcoop98
    Jun 30, 2022 at 19:33
  • @zcoop98 my thought was that creating synonyms would go a long way toward helping with that, so that at least typing "html-entities" would get you the right tag. Also not an SME, though.
    – Ryan M Mod
    Jun 30, 2022 at 19:34
  • @zcoop98 they would formally be called "SGML character entity references" and most people not familiar with XML would probably call them "HTML entities" but to people who work with XML this would definitely rub the wrong way!
    – miken32
    Jun 30, 2022 at 19:38
  • 1
    Also there's an entityreference tag that seems to be a mix of some kind of Drupal object and others that are referencing (HT|X)ML entities and should be retagged.
    – miken32
    Jun 30, 2022 at 19:39
  • What are character-entities?
    – Dharman Mod
    Jun 30, 2022 at 19:47
  • 1
    @Dharman a generic term to cover both (a shorter version of "SGML character entity references") ...but better naming ideas are very welcome.
    – Ryan M Mod
    Jun 30, 2022 at 19:48
  • These tags may also need merging and/or clarification: character-reference, html-escape-characters, entity, entities
    – mzjn
    Jul 5, 2022 at 15:43

2 Answers 2

3

and are certainly different.

  • XML has " & ' < and > and that's all.

  • HTML has all that XML has and more e.g.  

You can read more about html and xml entities in wikipedia.

I expect character entites is the generic term where you're encoding something, could be HTML, could be XML, could be something else I suppose. Other data formats such as JSON have completely different character entities.

So in short I don't think you can or should combine these.

The tag wiki for is very strange though and doesn't seem to match the questions it's being used for.

10
  • 2
    Thanks, I actually didn't know this (which is exactly the sort of feedback I was hoping to get). That said, we have tags that cover the same general idea as implemented differently in different languages/frameworks. Is it not close enough to be covered by the same tag, especially if one is a superset of the other?
    – Ryan M Mod
    Jun 30, 2022 at 19:37
  • 1
    One's a subset of the other, I don't think that makes them very different at all, nor does it mean they shouldn't be merged.
    – miken32
    Jun 30, 2022 at 19:40
  • 1
    If one tags a question as xml-entities and then asks why   isn't working then we have something to go on. If that's changed to html-entities then the question would make a lot less sense. Jun 30, 2022 at 19:42
  • 1
    IMO the only reason not to merge/synonymize these tags is if there's a non-SGML context where "character entity" means something. I think the combination of "xml" and "charater-entities" would make things clear
    – miken32
    Jun 30, 2022 at 19:43
  • 1
    @miken32 like json character entities? for instance? Jun 30, 2022 at 19:45
  • I think those are properly called escape sequences.
    – miken32
    Jun 30, 2022 at 19:49
  • When would I use either of those tags instead of simply using html or xml for my markdown?
    – Braiam
    Jul 1, 2022 at 9:47
  • @Braiam — presumably, when you have a question about XML entities, you'd use the xml-entities to further qualify what aspect of XML is under discussion. Etc. Jul 3, 2022 at 17:59
  • lol no <!ENTITY> Jul 3, 2022 at 19:36
  • @JonathanLeffler and in what way that helps my question to be answered that [xml] doesn't and doesn't require me to know that entities exist? Also, isn't that what my title is for? "How to represent dashes as data on my xml file?" If I know about entities, I wouldn't use the xml-entities tags at all, since if I know about them I wouldn't ask the question. So, again: when should I use it if everything I know is that I have a problem with xml?
    – Braiam
    Jul 4, 2022 at 7:44
-5

You are looking at the wrong tags to merge into. XML entities are not relevant outside XML. HTML entities are not relevant outside of HTML. Character entities is totally ambiguous and should not exist. So, merge X-entities into their X.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .