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-04-05 09:31:30 +0200
commit255c5ae94f944dbae40a9c16733191a795be2a23 (patch)
tree876d68db74fb9ee622501f5246cd6fd3ea2833a6 /include
parentab2ff4a5205e62cbb781e0bfe1b3f672c8d5138b (diff)
downloadvolse-hubzilla-255c5ae94f944dbae40a9c16733191a795be2a23.tar.gz
volse-hubzilla-255c5ae94f944dbae40a9c16733191a795be2a23.tar.bz2
volse-hubzilla-255c5ae94f944dbae40a9c16733191a795be2a23.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()