everytime you use a comma
everytime you use a comma
kat65@bde8ef59 Saturday 13th September 2025, 17:39:17Every time I use a comma on my forum, it replaces it with something like this 's on my forum Im currently using caddy as my web server on a Debian 12 VPS
Last modified by Fred on Tuesday 18th November 2025, 17:16:00
Fred locked the discussion.
Replies 5
First of all comma's don't get encoded, but the apostrophe and other special characters are converted. So
- and symbol
- greater than
- less than
- apostrophe
etc...
Probable because htmlspecialchars() is converting it all at the same.
- and symbol
- greater than
- less than
- apostrophe
etc...
Probable because htmlspecialchars() is converting it all at the same.
Last modified by Gavin on Saturday 13th September 2025, 18:38:00
A Web developer and web security programmer
Sorry for my late reply, I have a fix to test so I can update Flatboard. In the lib/Parser.lib.ph folder, search for:
and replace with:
HTML entities must be decoded before parsing.
public static function content(string $text, bool $summary = false): string
{
global $config;
if ($config['editor'] === 'markdown') {
global $Parsedown, $BBlight;
// Parse markdown content.
$text = $Parsedown->text($text);
$text = $BBlight->toHTML($text, false, true);
} else {
global $BBcode;
// Parse BBcode content.
$text = $BBcode->toHTML($text, false, true);
}
return $text;
}and replace with:
public static function content(string $text, bool $summary = false): string
{
global $config;
// Décoder les entités HTML avant le parsing
$text = html_entity_decode($text, ENT_QUOTES | ENT_HTML5, 'UTF-8');
if ($config['editor'] === 'markdown') {
global $Parsedown, $BBlight;
$text = $Parsedown->text($text);
$text = $BBlight->toHTML($text, false, true);
} else {
global $BBcode;
$text = $BBcode->toHTML($text, false, true);
}
return $text;
}HTML entities must be decoded before parsing.
- Before ask a question, read the documentation.
- 🎉 Featured as #1 product of the day on Product Hunt
- Please like in alternativeto.net 👍🏻
- ╰☆╮Flatboard╰☆╮ is a open source and community contributions are essential to project success!
- <TextField>, my new CMS project designed by a passionate developer, for developers!
- My last project Fast⚡︎CMS, a Flat-File cms.
- I am currently busy 😫.
Suggested Topics

mk@b8500609
started Turn off mobile version
General Questions

JPRuehmann
started Forum under the Main Bar with Theme Switcher
Bug reports

622e070a
started solved How To Create Moderator
General Questions

Cyrille BORNE
started solved On / Off sur les plugins
International Discussions