• Hello,

    This plugin is great! I’m only encountering one problem though. When my test emails come in, anything in the subject line that contains an apostrophe, the HTML equivalent of shows up. I’d like for the apostrophe to appear normally. I’m guessing this happens because I selected the “Use HTML content type” option. I see this problem in both Outlook and my webmail.

    If anyone has any idea how to fix this, I would great appreciate this.

    Thanks!
    Eric

    http://wordpress.org/extend/plugins/contact-form-7/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter ericwlm

    (@ericwlm)

    Sorry, I was trying to insert the HTML for apostrophe and it showed up wrong. What I meant to say is that I see &#8217 ; in the email subject line.

    Having the same issue. Apostrophe = &#8217 ;

    Me:
    http://www.tourabsurd.com
    WP 3.0.1
    “Use HTML content type” checked

    It’s an intended behavior you see when “Use HTML content type” is checked. If you don’t like it, you can disable the filtering by adding this code into your theme’s functions.php file.

    add_filter( 'wpcf7_mail_tag_replaced', 'remove_texturize_from_wmtr', 10, 2 );
    
    function remove_texturize_from_wmtr( $replaced, $submitted ) {
    	if ( is_array( $submitted ) )
    		$replaced = join( ', ', $submitted );
    	else
    		$replaced = $submitted;
    
    	return strip_tags( $replaced );
    }
    Thread Starter ericwlm

    (@ericwlm)

    Thanks so much Takayuki!

    Sorry to ask this, but exactly how and where should it be place in the file? I just copied the code and pasted it after the first function, but it didn’t seem to work. When I sent the test message, it just got stuck.

    Any advice on this would be much appreciated. =)

    Eric

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Contact Form 7] Subject line showing HTML’ is closed to new replies.