WebsiteBaker 2.13.8 is now available!
R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WBhttps://forum.websitebaker.org/index.php/topic,32355.0.html
class="img-responsive"
width="1920" height="800"
style="width:1920px; height:800px;"
$('.img-responsive').removeAttr('style');
config.disallowedContent = 'script; *[on*]';
config.disallowedContent = 'script; *[on*];img{width,height}';
config.extraAllowedContent = 'img[width,height]';
if(isset($_POST['content'])) { $content = $admin->strip_slashes(htmlspecialchars_decode($_POST['content'])); } else { $content = ''; } $content = preg_replace( '/(width|height)="\d*"\s/', "", $content ); $content = preg_replace( '/(style)=""\s/', "", $content ); //Clean img tag (input to img) and add img-responsive $content = preg_replace('/<input(.*?)type="image"(.*?)>/', '<img $1$2>', $content); $content = preg_replace( '/(width|height)="\d*"\s/', "", $content ); $classes = 'img-responsive'; // separated by spaces, e.g. 'img image-link' $content = preg_replace('/\s{2,}/', ' ',$content); if ( preg_match('/<img.*? class="/', $content) ) { $content = preg_replace('/<img(.*?) class=".*?/', '<img$1 class="' . $classes . ' $2', $content); } else { $content = preg_replace('/<img(.*?)/', '<img class="'.$classes.'"$1', $content); } $content = preg_replace('/<img(.*?)class="('.$classes.'\s)+(.*?)/', '<img$1class="$3', $content); $content = preg_replace('/([^:])(\/{2,})/', '$1/', $content); //End cleaning
here is some code I am using..
Where exactly did you insert that code?
$content = $aRequestVars['content'.$section_id]