diff --git a/about.page b/about.page index 9193cb6..c242afd 100755 --- a/about.page +++ b/about.page @@ -4,7 +4,7 @@ description: Convert file and folder structure into web pages. icon: 'M19 2L14 6.5V17.5L19 13V2M6.5 5C4.55 5 2.45 5.4 1 6.5V21.16C1 21.41 1.25 21.66 1.5 21.66C1.6 21.66 1.65 21.59 1.75 21.59C3.1 20.94 5.05 20.5 6.5 20.5C8.45 20.5 10.55 20.9 12 22C13.35 21.15 15.8 20.5 17.5 20.5C19.15 20.5 20.85 20.81 22.25 21.56C22.35 21.61 22.4 21.59 22.5 21.59C22.75 21.59 23 21.34 23 21.09V6.5C22.4 6.05 21.75 5.75 21 5.5V19C19.9 18.65 18.7 18.5 17.5 18.5C15.8 18.5 13.35 19.15 12 20V6.5C10.55 5.4 8.45 5 6.5 5Z' author: Taufik Nurrohman type: Markdown -version: 2.0.2 +version: 2.0.3 use: '.\lot\x\layout': 1 diff --git a/composer.json b/composer.json index 72fbd04..02c22de 100644 --- a/composer.json +++ b/composer.json @@ -5,5 +5,8 @@ "require": { "mecha-cms/x.layout": "^2.0.0", "mecha-cms/x.y-a-m-l": "^2.0.0" + }, + "suggest": { + "ext-mbstring": "It would be great if `ext-mbstring` is installed. We will use other ways if `ext-mbstring` is not available." } } \ No newline at end of file diff --git a/engine/plug/to.php b/engine/plug/to.php index 36878c9..5bd1719 100644 --- a/engine/plug/to.php +++ b/engine/plug/to.php @@ -4,7 +4,7 @@ // Make sure to add space at the end of the block tag(s) that will be removed. To make `
asdf.
asdf
` // becomes `asdf. asdf` and not `asdf.asdf`. $r = 'address|article|blockquote|details|div|d[dt]|figure|(?:fig)?caption|footer|h(?:[1-6]|eader|r)|li|main|nav|p(?:re)?|section|summary|t[dh]'; - $value = preg_replace(['/\s+/', '/\s*(<\/(?:' . $r . ')>)\s*/i'], [' ', '$1 '], $value); + $value = preg_replace(['/\s+/', '/\s*(<\/(?:' . $r . ')>)\s*/i'], [' ', '$1 '], $value ?? ""); $value = strip_tags($value, '