[wp-hackers] single quote in content ends up as Unicode Character 'RIGHT SINGLE QUOTATION MARK'

Otto otto at ottodestruct.com
Tue May 27 01:15:46 UTC 2014


That would be the wptexturize function.

http://codex.wordpress.org/Function_Reference/wptexturize

-Otto


On Mon, May 26, 2014 at 7:31 PM, Haluk Karamete <halukkaramete at gmail.com>wrote:

> This is a trickty one...
>
> When I type in ' ( which is a simple single quote) in the content area in
> my shortcode, I see that it ends up as a 'right single quotation mark' that
> is ’
>
> That's observation #1.
>
> It gets even more interesting, but when I put two of them, one after the
> other  like this, ( '' ) , I ended up with ”  ( instead of
> ’’).
>
> This is very confusing to me cause I'm middle of parsing my structured data
> based shortcode. The content area interferes with me big time.
>
> Could you tell me which WordPress function(s) involve here so that a
> simple good old (') single quote ends up with ’? Could you point me
> the location where this is happening?
>
> With that location, I'm hoping to see the complete view of what other
> conversion are happening that my parser be aware of.
>
> Thank you
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list