Welcome to Codidact Meta!
Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.
Post History
An ampersand shows as & instead of & in the following question content preview: I've also included an ampersand in the title of this question to test whether the title is also affect...
#4: Post edited
- An ampersand shows as `&` instead of `&` in the following question content preview:
- ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc)
- I've also included an ampersand in the title of this question to test whether the title is also affected in the question preview. As can be seen on the front page, the ampersand in the question preview title displays correctly, so it is only the content preview that has this problem:
![A question preview with an ampersand in the title but an HTML entity in the content preview](https://meta.codidact.com/uploads/4oc55efjjt8m02ze4de895z1pwcy)
- An ampersand shows as `&` instead of `&` in the following question content preview:
- ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc)
- I've also included an ampersand in the title of this question to test whether the title is also affected in the question preview. As can be seen on the front page, the ampersand in the question preview title displays correctly, so it is only the content preview that has this problem:
- ![A question preview with an ampersand in the title but an HTML entity in the content preview](https://meta.codidact.com/uploads/9w66b4q4d1ctfit0ubxz7ffff2hg)
#3: Post edited
In addition to [HTML entities not rendering in titles](https://meta.codidact.com/posts/281766), the content preview on the front page also shows raw HTML entities rather than their rendered characters.- An ampersand shows as `&` instead of `&` in the following question content preview:
- ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc)
The question linked above (about entities in titles) has an answer that suggests pasting in the character direct rather than using an HTML entity. This workaround works for uncommon characters not available from a particular regional keyboard, such as pasting in ℵ directly instead of typing `ℵ` (the example given in that question). However, in the image above the ampersand was typed directly, and only converted into an HTML entity upon saving. This means the workaround cannot be used.Is this enough reason to consider rendering HTML entities in question content previews (and possibly titles too)?Alternatively, should this just be considered a more limited scope bug that only affects characters like ampersand that are automatically converted back to HTML entities preventing the workaround from working? Should a fix only consider such characters, like `<` (<), `>` (>), and `&` (&)?
- An ampersand shows as `&` instead of `&` in the following question content preview:
- ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc)
- I've also included an ampersand in the title of this question to test whether the title is also affected in the question preview. As can be seen on the front page, the ampersand in the question preview title displays correctly, so it is only the content preview that has this problem:
- ![A question preview with an ampersand in the title but an HTML entity in the content preview](https://meta.codidact.com/uploads/4oc55efjjt8m02ze4de895z1pwcy)
#2: Post edited
- In addition to [HTML entities not rendering in titles](https://meta.codidact.com/posts/281766), the content preview on the front page also shows raw HTML entities rather than their rendered characters.
For example, an ampersand shows as `&` instead of `&` in the following question content preview:- ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc)
- The question linked above (about entities in titles) has an answer that suggests pasting in the character direct rather than using an HTML entity. This workaround works for uncommon characters not available from a particular regional keyboard, such as pasting in ℵ directly instead of typing `ℵ` (the example given in that question). However, in the image above the ampersand was typed directly, and only converted into an HTML entity upon saving. This means the workaround cannot be used.
- Is this enough reason to consider rendering HTML entities in question content previews (and possibly titles too)?
- Alternatively, should this just be considered a more limited scope bug that only affects characters like ampersand that are automatically converted back to HTML entities preventing the workaround from working? Should a fix only consider such characters, like `<` (<), `>` (>), and `&` (&)?
- In addition to [HTML entities not rendering in titles](https://meta.codidact.com/posts/281766), the content preview on the front page also shows raw HTML entities rather than their rendered characters.
- An ampersand shows as `&` instead of `&` in the following question content preview:
- ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc)
- The question linked above (about entities in titles) has an answer that suggests pasting in the character direct rather than using an HTML entity. This workaround works for uncommon characters not available from a particular regional keyboard, such as pasting in ℵ directly instead of typing `ℵ` (the example given in that question). However, in the image above the ampersand was typed directly, and only converted into an HTML entity upon saving. This means the workaround cannot be used.
- Is this enough reason to consider rendering HTML entities in question content previews (and possibly titles too)?
- Alternatively, should this just be considered a more limited scope bug that only affects characters like ampersand that are automatically converted back to HTML entities preventing the workaround from working? Should a fix only consider such characters, like `<` (<), `>` (>), and `&` (&)?
#1: Initial revision
HTML entities & the question content preview
In addition to [HTML entities not rendering in titles](https://meta.codidact.com/posts/281766), the content preview on the front page also shows raw HTML entities rather than their rendered characters. For example, an ampersand shows as `&` instead of `&` in the following question content preview: ![A question content preview with an HTML entity instead of an ampersand](https://meta.codidact.com/uploads/0007e02sury31hdl0587ssjbepxc) The question linked above (about entities in titles) has an answer that suggests pasting in the character direct rather than using an HTML entity. This workaround works for uncommon characters not available from a particular regional keyboard, such as pasting in ℵ directly instead of typing `ℵ` (the example given in that question). However, in the image above the ampersand was typed directly, and only converted into an HTML entity upon saving. This means the workaround cannot be used. Is this enough reason to consider rendering HTML entities in question content previews (and possibly titles too)? Alternatively, should this just be considered a more limited scope bug that only affects characters like ampersand that are automatically converted back to HTML entities preventing the workaround from working? Should a fix only consider such characters, like `<` (<), `>` (>), and `&` (&)?