From 863ee9e6dd890d49602b67b9ffbed1bab816b54c Mon Sep 17 00:00:00 2001 From: zotlabs Date: Mon, 31 Oct 2016 21:48:00 -0700 Subject: bbcode event formatting issue --- include/bb2diaspora.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/bb2diaspora.php') diff --git a/include/bb2diaspora.php b/include/bb2diaspora.php index 514b2b339..da02d6cac 100644 --- a/include/bb2diaspora.php +++ b/include/bb2diaspora.php @@ -449,6 +449,8 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) { $md = new Markdownify(false, false, false); $Text = $md->parseString($Text); + + // 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('<','>','&'),$Text); -- cgit v1.2.3