projects
/
diogenes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Release diogenes-0.9.22
[diogenes.git]
/
include
/
diogenes.text.inc.php
diff --git
a/include/diogenes.text.inc.php
b/include/diogenes.text.inc.php
index
7f415d6
..
76ef7d9
100644
(file)
--- a/
include/diogenes.text.inc.php
+++ b/
include/diogenes.text.inc.php
@@
-78,7
+78,7
@@
function textUnprotectTags($prot_open, $prot_close, $input)
*/
function htmlProtectFromTextism($input)
{
*/
function htmlProtectFromTextism($input)
{
- return textProtectTag("<
table\s*?[^>]*>", "<\/table
>", "{NOP:", ":NOP}", $input);
+ return textProtectTag("<
protect>", "<\/protect
>", "{NOP:", ":NOP}", $input);
}
}
@@
-86,7
+86,9
@@
function htmlProtectFromTextism($input)
*/
function htmlUnprotectFromTextism($input)
{
*/
function htmlUnprotectFromTextism($input)
{
- return textUnprotectTags("{NOP:", ":NOP}", $input);
+ $input = textUnprotectTags("<p>\s*{NOP:", ":NOP}\s*<\/p>", $input);
+ $input = textUnprotectTags("{NOP:", ":NOP}", $input);
+ return preg_replace('/<\/?protect>/', "", $input);
}
}