Editor strips out xmlns attribute and new lines
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type" />
<title>Welcome to my site!</title>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" align="center" style="width: 729px;">
<tbody>
<tr>
<td>
<?php
// see sample usage: admin > tools > widgets;
require_once('lib/PageContent.class.php');
$wpage = new PageContent();
$wpages = $wpage->getActiveList();
if(count($wpages)>0){
?>
<div id="widgetContents">Widget code goes here</div>
<?php } ?>##SHOPPING CART## </td>
</tr>
</tbody>
</table>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Welcome to my site!</title>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" align="center" style="width: 729px;">
<tbody>
<tr>
<td><?php // see sample usage: admin > tools > widgets; require_once('lib/PageContent.class.php'); $wpage = new PageContent(); $wpages = $wpage->getActiveList(); if(count($wpages)>0){ ?>
<div id="widgetContents">Widget code goes here</div>
<?php } ?>##SHOPPING CART##</td>
</tr>
</tbody>
</table>
</body>
</html>
<?php
// see sample usage: admin > tools > widgets;
require_once('lib/PageContent.class.php');
$wpage = new PageContent();
$wpages = $wpage->getActiveList();
if(count($wpages)>0){
?>
<?php // see sample usage: admin > tools > widgets; require_once('lib/PageContent.class.php'); $wpage = new PageContent(); $wpages = $wpage->getActiveList(); if(count($wpages)>0){ ?>
Re: Editor strips out xmlns attribute and new lines
$body = str_replace('<?php', '<?php', $body);<link rel="stylesheet" type="text/css" href="<?php if ($config) { echo $config->getValue('merchantURL'); } ?>/css/percentage.css" />http://docs.fckeditor.net/FCKeditor_2.x ... Source.Add
$htmlbody = str_replace("<html>", "<html xmlns=\"http://www.w3.org/1999/xhtml\">", $htmlbody);