Updates:
Summary: XML import not converting <p> and <br /> tags
Comment #3 on issue 719 by vangarderen.peter: XML import not converting <p>
and <br /> tags
http://code.google.com/p/qubit-toolkit/issues/detail?id=719
will have to convert <p> to "\n\n" and <br /> to "\n" and </p> to "" on
import. Can
write a simple QubitHelper to do this.
function convert_lb($string)
{
$replace1 = array("<br />", "<br />");
$string1 = str_replace($replace1, "\r\n", $string);
$replace2 = array("<p>", "<p>");
$string2 = str_replace($replace2, "\r\n\r\n", $string1);
$replace3 = array("</p>", "</p>");
return str_replace($replace3, "", $string2);
}
However, cannot include this helper in the current XML import
configuration. Will
split-up and simplify XML import per standard in release 1.1. and include
this
capability at that time.
As a workaround for release 1.0.8, will use nl2br to include <br /> tags to
preserve
linebreaks and paragraphs in the content data.
As of 1.0.8 <p> and <br /> will (re)import into Qubit literally as long as
the '<'
and '>' reserved characters are escaped properly ('<' and '>'). The
Symfony
output escaping respects and displays these properly in the view and show
templates.
This just means that tags will be embedded within the regular text content
that is
stored in the dbase (not ideal).
--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Qubit Toolkit Issues" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/qubit-issues?hl=en
-~----------~----~----~----~------~----~------~--~---