never replace anything in code or pre HTML bloc

This commit is contained in:
Jean-Christian Denis 2023-04-21 11:07:55 +02:00
parent e1295d2f6f
commit d1ea771013
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951
9 changed files with 10 additions and 10 deletions

View file

@ -30,7 +30,7 @@ class EpcFilterAbbreviation extends EpcFilter
'name' => __('Abbreviation'),
'help' => __('Explain some abbreviation. First term of the list is the abbreviation and second term the explanation.'),
'has_list' => true,
'htmltag' => 'a',
'htmltag' => 'pre,code,a',
'class' => ['abbr.epc-abbr'],
'replace' => '<abbr class="epc-abbr" title="%s">%s</abbr>',
'widget' => '<abbr title="%s">%s</abbr>',

View file

@ -30,7 +30,7 @@ class EpcFilterAcronym extends EpcFilter
'name' => __('Acronym'),
'help' => __('Explain some acronyms. First term of the list is the acornym and second term the explanation.'),
'has_list' => true,
'htmltag' => 'acronym',
'htmltag' => 'pre,code,acronym',
'class' => ['acronym.epc-acronym'],
'replace' => '<acronym class="epc-acronym" title="%s">%s</acronym>',
'widget' => '<acronym title="%s">%s</acronym>',

View file

@ -30,7 +30,7 @@ class EpcFilterCitation extends EpcFilter
'name' => __('Citation'),
'help' => __('Highlight citation of people. First term of the list is the citation and second term the author.'),
'has_list' => true,
'htmltag' => 'cite',
'htmltag' => 'pre,code,cite',
'class' => ['cite.epc-cite'],
'replace' => '<cite class="epc-cite" title="%s">%s</cite>',
'widget' => '<cite title="%s">%s</cite>',

View file

@ -30,7 +30,7 @@ class EpcFilterDefinition extends EpcFilter
'name' => __('Definition'),
'help' => __('Explain some definition. First term of the list is the sample to define and second term the explanation.'),
'has_list' => true,
'htmltag' => 'dfn',
'htmltag' => 'pre,code,dfn',
'class' => ['dfn.epc-dfn'],
'replace' => '<dfn class="epc-dfn" title="%s">%s</dfn>',
'widget' => '<dfn class="epc-dfn" title="%s">%s</dfn>',

View file

@ -30,7 +30,7 @@ class EpcFilterLink extends EpcFilter
'name' => __('Link'),
'help' => __('Link some words. First term of the list is the term to link and second term the link.'),
'has_list' => true,
'htmltag' => 'a',
'htmltag' => 'pre,code,a',
'class' => ['a.epc-link'],
'replace' => '<a class="epc-link" title="%s" href="%s">%s</a>',
'widget' => '<a title="%s" href="%s">%s</a>',

View file

@ -28,7 +28,7 @@ class EpcFilterReplace extends EpcFilter
'name' => __('Replace'),
'help' => __('Replace some text. First term of the list is the text to replace and second term the replacement.'),
'has_list' => true,
'htmltag' => '',
'htmltag' => 'pre,code',
'class' => ['span.epc-replace'],
'replace' => '<span class="epc-replace">%s</span>',
];

View file

@ -30,7 +30,7 @@ class EpcFilterTag extends EpcFilter
'priority' => 900,
'name' => __('Tag'),
'help' => __('Highlight tags of your blog.'),
'htmltag' => 'a',
'htmltag' => 'pre,code,a',
'class' => ['a.epc-tag'],
'replace' => '<a class="epc-tag" href="%s" title="' . __('Tag') . '">%s</a>',
'widget' => '<a href="%s" title="' . __('Tag') . '">%s</a>',
@ -41,7 +41,7 @@ class EpcFilterTag extends EpcFilter
{
return [
'style' => ['text-decoration: none; border-bottom: 3px double #CCCCCC;'],
'notag' => 'a,h1,h2,h3',
'notag' => 'pre,code,a,h1,h2,h3',
'tplValues' => ['EntryContent'],
'pubPages' => ['post.html'],
];

View file

@ -27,7 +27,7 @@ class EpcFilterTwitter extends EpcFilter
'priority' => 1000,
'name' => __('Twitter'),
'help' => __('Add link to twitter user page. Every word started with "@" will be considered as twitter user.'),
'htmltag' => 'a',
'htmltag' => 'pre,code,a',
'class' => ['a.epc-twitter'],
'replace' => '<a class="epc-twitter" title="' . __("View this user's twitter page") . '" href="%s">%s</a>',
];

View file

@ -28,7 +28,7 @@ class EpcFilterUpdate extends EpcFilter
'name' => __('Update'),
'help' => __('Update and show terms. First term of the list is the term to update and second term the new term.'),
'has_list' => true,
'htmltag' => 'del,ins',
'htmltag' => 'pre,code,del,ins',
'class' => ['del.epc-update', 'ins.epc-update'],
'replace' => '<del class="epc-update">%s</del> <ins class="epc-update">%s</ins>',
];