• Resolved Celso Bessa

    (@celsobessa)


    Frank, is there a way to keep line breaks on comments when “Keep HTML Comments” options is on?

    WPEngine uses html/php post processing to replace the domains for CDNs, but it does not work properly on long lines. So, i was thinking about activating “Keep HTML Comments” option and echo some comments with line breaks in some strategic points to make lines shorter and allow CDN replacement for some images.

    echo '<!-- keep this comment for optimization purposes -->' . "\r\n";

    https://wordpress.org/plugins/autoptimize/

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Any way to keep line breaks?’ is closed to new replies.