Backslashes When Entering Apostrophes

Posted in: Newspaper
Post count: 34

When entering in text in the field “TEXT LOGO TAGLINE / Write a tagline for the text logo” within the theme’s panel of Newspaper 7, upon loading the pages and pulling the data, the result is backslash insertion. Same thing happens in the text logo field, too.

Example:

Enter:
HUNTING FOR THOMPSON’S
IF YOU’RE ARE A FAN, NO EXPLANATION IS NEEDED – IF NOT, NONE CAN BE GIVEN

Writes to database:

HUNTING FOR THOMPSON\’S
IF YOU\’RE ARE A FAN, NO EXPLANATION IS NEEDED – IF NOT, NONE CAN BE GIVEN

huntingforthompson.com

Post count: 34

Using version 7.5

Post count: 34

I cam up with a work around, but would like to solve the matter correctly. I simply have entered the logo text and the tagline text directly into Newspaper\parts\header\logo-text.php lines 119 and 131.

But please send me the proper fix:

<span class=”td-logo-text”><?php if(!$td_logo_text) { echo “HUNTING FOR THOMPSON”; } else { echo $td_logo_text; } ?></span>

<?php

if($td_use_h1_logo === true) {

echo ‘</h1>’;

};

?>

<span class=”td-tagline-text”><?php if(!$td_tagline_text) { echo “IF YOU’RE A FAN, NO EXPLANATION IS NEEDED – IF YOU’RE NOT, NONE CAN BE GIVEN”; } else { echo $td_tagline_text; } ?></span>

</span>

  • This reply was modified 9 years by jrh.
Post count: 9544

I think you can also use ASCII entities for apostrophes.

https://dev.w3.org/html5/html-author/charref

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.