Forums

[resolved] eMob Email Obfuscator produces XHTML error (1 post)

  1. upekshapriya
    Member
    Posted 3 years ago #

    Line 368, Column 19: character "@" is not allowed in the value of attribute "id".
    
    <span id="emob-vasb@znapurfgreohqquvfgprager.bet.hx-49">

    eMob Email Obfuscator produces the above XHTML error

    I replaced the function at line 45

    function emob_obfusc_mail($address)
    {
        // Requires: PHP >= 4.2.0
        return str_rot13($address);
    }

    with a new version that gets rid of the @ character:

    function emob_obfusc_mail($address)
    {
        // Requires: PHP >= 4.2.0
        $email_obfusc = str_rot13($address);
    	return strtr  ( $email_obfusc , '@' ,'A' );
    }

    which solves the problem.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.