• (in order to present a quicktime audio player I say…)

    <script language=”JavaScript” type=”text/javascript”>
    QT_WriteOBJECT_XHTML(‘/ljud/quicktimeplayer.jpg’, ‘300’, ’30’, ”,
    ‘href’, ‘https://www.farm.se/wps/wp-content/mitt/highland_1.mp3&#8217;,
    ‘autoplay’, ‘false’,
    ‘align’, ‘middle’,
    ‘target’,’myself’,
    ‘controller’,’false’);
    </script>

    This is what WordPress does with it (copied from the source view of the finnished page. NOTE what it did to the quotes…

    <script language=”JavaScript” type=”text/javascript”>
    QT_WriteOBJECT_XHTML(’/ljud/quicktimeplayer.jpg’, ‘300′, ‘30′, ‘’,
    ‘href’, ‘https://www.farm.se/wps/wp-content/mitt/highland_1.mp3&#8242;,
    ‘autoplay’, ‘false’,
    ‘align’, ‘middle’,
    ‘target’,’myself’,
    ‘controller’,’false’);
    </script>

    and this does not work… How can I persuade WordPress to leave my ASCII quote chars (“) (‘) alone?

    Lars

Viewing 2 replies - 1 through 2 (of 2 total)
  • An option:

    You can keep WPTexturize (the function that’s doing this) from working on your post content by commenting out or removing this line in wp-includes/default-filters.php:

    add_filter('the_content', 'wptexturize');

    A better option:

    https://dev.wp-plugins.org/wiki/TextControl

    Thread Starter larsfarm

    (@larsfarm)

    So, why does WordPress leave some quotes and replace others? It seems as if only the ones within parentheses are altered. In the same post there are other ‘”‘ characters that WordPress leaves alone. Why is this character replacement even considered desirable?

    How do you interleave arbitrary HTML in a post?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘calling javascript from message text’ is closed to new replies.