aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2018-03-23 09:40:24 +0100
committerMario Vavti <mario@mariovavti.com>2018-03-23 09:40:24 +0100
commitac967db4e87761c1be98d6f548ecedd55d942fea (patch)
treece9445988d689bbaa6a7b052532e72ed1c36c98d /include
parent8ea8700eef07098629b808ded3bee0a11c1e3608 (diff)
downloadvolse-hubzilla-ac967db4e87761c1be98d6f548ecedd55d942fea.tar.gz
volse-hubzilla-ac967db4e87761c1be98d6f548ecedd55d942fea.tar.bz2
volse-hubzilla-ac967db4e87761c1be98d6f548ecedd55d942fea.zip
new markdown lib seems to handle < and > correct. remove the workaraound.
Diffstat (limited to 'include')
-rw-r--r--include/markdown.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/markdown.php b/include/markdown.php
index e4a35e3c3..431ba84a4 100644
--- a/include/markdown.php
+++ b/include/markdown.php
@@ -207,7 +207,7 @@ function bb_to_markdown($Text, $options = []) {
$Text = bbcode($Text, [ 'tryoembed' => false ]);
// Markdownify does not preserve previously escaped html entities such as <> and &.
- $Text = str_replace(array('&lt;','&gt;','&amp;'),array('&_lt_;','&_gt_;','&_amp_;'),$Text);
+ //$Text = str_replace(array('&lt;','&gt;','&amp;'),array('&_lt_;','&_gt_;','&_amp_;'),$Text);
// Now convert HTML to Markdown
@@ -215,7 +215,7 @@ function bb_to_markdown($Text, $options = []) {
// It also adds backslashes to our attempt at getting around the html entity preservation for some weird reason.
- $Text = str_replace(array('&\\_lt\\_;','&\\_gt\\_;','&\\_amp\\_;'),array('&lt;','&gt;','&amp;'),$Text);
+ //$Text = str_replace(array('&\\_lt\\_;','&\\_gt\\_;','&\\_amp\\_;'),array('&lt;','&gt;','&amp;'),$Text);
// If the text going into bbcode() has a plain URL in it, i.e.
// with no [url] tags around it, it will come out of parseString()