• Resolved Chi Is Current

    (@jacobbarnett)


    Hello! ~~ Attempting to hide email addresses from SPAM bots, I convert ascii addresses to decimal “character entities” i.e. A = A. This has been working very well. However, I notice when shifting from “Text” editing mode to “Visual” editing mode WP returns decimal “character entities” back to ascii!

    Searching for a fix, I have added the following suggestion to functions.php:

     function override_mce_options($initArray) {
    	$opts = '*[*]';
    	$initArray['valid_elements'] = $opts;
    	$initArray['extended_valid_elements'] = $opts;
    	return $initArray;
    }
    add_filter('tiny_mce_before_init', 'override_mce_options');

    without success.

    Can you recommend a way to prevent WP from replacing decimal “character entities” back to ascii when shifting from “Text” editing mode to “Visual” editing mode?

    Thank You for Your Attention! ~~ Jacob

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    Please do not create duplicate topics!

    Thread Starter Chi Is Current

    (@jacobbarnett)

    Steve ~ Thank you for your reply and for deleting errant additional two posts. No one has replied to this post, in almost 3 weeks.

    What do you recommend? Is this question clear? Is this functionality possible? — Difficult to imagine it’s not.

    Thank you for your assistance here.

    ~ Jacob

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Switching from Text to Visual editing replaces HTML character entities w/ ascii’ is closed to new replies.