* Performs various string fixes based on configuration.
(str)
| 913 | * Performs various string fixes based on configuration. |
| 914 | */ |
| 915 | function fixInputString(str) |
| 916 | { |
| 917 | var br = /<br\s*\/?>|<br\s*\/?>/gi; |
| 918 | |
| 919 | if (sh.config.bloggerMode == true) |
| 920 | str = str.replace(br, '\n'); |
| 921 | |
| 922 | if (sh.config.stripBrs == true) |
| 923 | str = str.replace(br, ''); |
| 924 | |
| 925 | return str; |
| 926 | }; |
| 927 | |
| 928 | /** |
| 929 | * Removes all white space at the begining and end of a string. |