app/styleguide/js/libs/highlighter/shCore.js
/**
 * Performs various string fixes based on configuration.
 */
Performs various string fixes based on configuration.
Performs various string fixes based on configuration .
function fixInputString(str)
{
  var br = /<br\s*\/?>|&lt;br\s*\/?&gt;/gi;
  if (sh.config.bloggerMode == true)
    str = str.replace(br, '\n');
  if (sh.config.stripBrs == true)
    str = str.replace(br, '');
  return str;
}
function fixInputString ( str ) { var br = / <br\s*\/?>|&lt;br\s*\/?&gt; / gi ; if ( sh . config . bloggerMode == true ) str = str . replace ( br , '\n' ) ; if ( sh . config . stripBrs == true ) str = str . replace ( br , '' ) ; return str ; }
Performs various string fixes based on configuration.
Performs various string fixes based on configuration .