4c4 < Version: 2.6 --- > Version: 2.7 6c6 < Description: Wraps up the functionality of the Acronym Replacer, AutoLinker, and then some. Can replace anything with anything, and includes (optional) domTT powered tooltips. --- > Description: Wraps up the functionality of the Acronym Replacer, AutoLinker, and then some. Can replace anything with anything, and includes (optional) domTT powered tooltips. Bugfix by SignpostMarv Martin. 125,127c125,127 < htmlentities(stripslashes($_POST['uber_abbr'][$utt]), ENT_QUOTES), // the search text < htmlentities(stripslashes($_POST['uber_text'][$utt]), ENT_QUOTES), // the replacement text (or tooltip text) < htmlentities(stripslashes($_POST['uber_description'][$utt]), ENT_QUOTES), // additional text (in parenthesis, or in DomTT) --- > wp_specialchars(stripslashes($_POST['uber_abbr'][$utt])), // the search text > wp_specialchars(stripslashes($_POST['uber_text'][$utt])), // the replacement text (or tooltip text) > wp_specialchars(stripslashes($_POST['uber_description'][$utt])), // additional text (in parenthesis, or in DomTT) 129,130c129,130 < htmlentities(stripslashes($_POST['uber_makeLink'][$utt]), ENT_QUOTES), // URL to convert text into a link (leave NULL to not link) < htmlentities(stripslashes($_POST['uber_appendLink'][$utt]), ENT_QUOTES)); // URL to append a (link) to the tooltip (or text if not using DomTT) --- > wp_specialchars(stripslashes($_POST['uber_makeLink'][$utt])), // URL to convert text into a link (leave NULL to not link) > wp_specialchars(stripslashes($_POST['uber_appendLink'][$utt]))); // URL to append a (link) to the tooltip (or text if not using DomTT) 348,352d347 < function htmlentities3($myHTML, $quote_style = ENT_QUOTES) { < $translation_table=get_html_translation_table (HTML_ENTITIES,$quote_style); < $translation_table[chr(38)] = '&'; < return preg_replace("/&(?![A-Za-z]{0,4}\w{2,3};|#[0-9]{2,4};)/","&" , strtr($myHTML, $translation_table)); < } 373,374c368,369 < // debug ."\n R3 HTML Encode:" . htmlentities3(html_entity_decode(stripslashes($tooltip->abbr),ENT_QUOTES), ENT_COMPAT) < // debug ."\n add slashes:" . addslashes(htmlentities3(html_entity_decode(stripslashes($tooltip->abbr),ENT_QUOTES), ENT_COMPAT)) --- > // debug ."\n R3 HTML Encode:" . wp_specialchars(html_entity_decode(stripslashes($tooltip->abbr),ENT_QUOTES), 'double') > // debug ."\n add slashes:" . addslashes(wp_specialchars(html_entity_decode(stripslashes($tooltip->abbr),ENT_QUOTES), 'double')) 377c372 < $regex = "¤(?!<[^<>]*?)(?abbr),ENT_QUOTES), ENT_COMPAT)).")\b(?!:)(?![^<>]*?>)¤imsU"; --- > $regex = "¤(?!<[^<>]*?)(?abbr),ENT_QUOTES), 'double')).")\b(?!:)(?![^<>]*?>)¤imsU"; 379c374 < $regex = "¤(?!<[^<>]*?)(?abbr),ENT_QUOTES), ENT_COMPAT)).")\b(?!:)(?![^<>]*?>)¤msU"; --- > $regex = "¤(?!<[^<>]*?)(?abbr),ENT_QUOTES), 'double')).")\b(?!:)(?![^<>]*?>)¤msU"; 415c410 < $content = "'content', '". addslashes(htmlentities3(html_entity_decode($tooltip->description,ENT_QUOTES), ENT_COMPAT)) .( ( null != $tooltip->appendLink ) ? ' (<a href="'. $tooltip->appendLink.'">link</a>)' : '' ). "','caption', '". addslashes(htmlentities(html_entity_decode($tooltip->text,ENT_QUOTES), ENT_COMPAT)) ."'"; --- > $content = "'content', '". addslashes(wp_specialchars(html_entity_decode($tooltip->description,ENT_QUOTES), 'double')) .( ( null != $tooltip->appendLink ) ? ' (<a href="'. $tooltip->appendLink.'">link</a>)' : '' ). "','caption', '". addslashes(htmlentities(html_entity_decode($tooltip->text,ENT_QUOTES), ENT_COMPAT)) ."'"; 417c412 < $content = "'content', '". addslashes(htmlentities3(html_entity_decode($tooltip->text,ENT_QUOTES), ENT_COMPAT)) .( ( null != $tooltip->appendLink ) ? ' (<a href="'. $tooltip->appendLink.'">link</a>)' : '' )."'"; --- > $content = "'content', '". addslashes(wp_specialchars(html_entity_decode($tooltip->text,ENT_QUOTES), 'double')) .( ( null != $tooltip->appendLink ) ? ' (<a href="'. $tooltip->appendLink.'">link</a>)' : '' )."'";