Skip to content

Commit

Permalink
Data Formatter bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
msyk committed Jul 28, 2024
1 parent 44f56a1 commit 5aa236c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/php/Data_Converter/HTMLString.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ public function converterFromUserToDB(string $str): string
*/
public function converterFromDBtoUser(?string $str): string
{
if (is_null($str)) {
return "";
}
if (!$this->noescape) {
$str = $this->replaceTags($str);
}
Expand Down
3 changes: 3 additions & 0 deletions src/php/Data_Converter/MarkdownString.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ class MarkdownString extends HTMLString
*/
public function converterFromDBtoUser(?string $str): string
{
if (is_null($str)) {
return "";
}
$str = $this->replaceTags($str);
$str = $this->taggingAsMarkdown($str);
return $this->replaceLinkToATag($str);
Expand Down

0 comments on commit 5aa236c

Please sign in to comment.