Created
September 29, 2012 21:55
-
-
Save ccgus/3805275 to your computer and use it in GitHub Desktop.
webExportWillWriteHTMLForItem
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
in your VPWebExportScript page, you can have this which will do simple replacements: | |
function webExportWillWriteHTMLForItem(contextDictionary, item, fileName, mutableHTMLString) { | |
mutableHTMLString.replaceOccurrencesOfString_withString_options_range_("<p>", "<div>", 0, NSMakeRange(0, mutableHTMLString.length())); | |
mutableHTMLString.replaceOccurrencesOfString_withString_options_range_("</p>", "</div>", 0, NSMakeRange(0, mutableHTMLString.length())); | |
return mutableHTMLString; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment