Hi 'Flskydiver', first of all I have to say:
I do respect your personal effort in learning and writing export scripts for the Mp3tag community.
I've tried to understand your last code work from the 'Lyrics_to_One_Big_Formatted_HTML_File__v.8beta__Light.zip'.
The script seems to be a conglomeration of professional and beginner ideas and code work.
It is not easy work to combine Mp3tag Scripting Language with HTML and CSS and Javascript language into one useful product.
The script offers many occasions to make the code 'cleaner and better and more elegant'.
I've read about your problems how to escape special characters in the different languages in the right way.
You have to take into account, when writing a Mp3tag export script, that the Mp3tag Scripting Language is the master language, which is used to invoke Mp3tag Scripting functions and to create text data output of tag-field content and additionally other free text, which for example can be designed like a HTML script, which further on carries embedded CSS and Javascript code.
It has turned out to be convenient (see many other forum posts), to 'literalize' all those text output, which is not a Mp3tag Scripting Function or a Mp3tag tag-field placeholder.
'Literalizing' means to enclose all output text with the Mp3tag string delimiter (single apostroph).
Only leave tag-field placeholders and Mp3tag functions 'visible'.
When writing HTML code using the Mp3tag Scripting Language, then take into account, that HTML has its own rules to be respected. There is also the need to escape some special characters.
When writing embedded CSS code using the Mp3tag Scripting Language, then take into account, that CSS embedded into HTML has its own rules to be respected.
When writing embedded Javasricpt code using the Mp3tag Scripting Language, then take into account, that Javasript embedded into HTML has its own rules to be respected.
Because you are using the Notepad++ editor, I recommend to use the Mp3tag syntax highlighting feature:
http://notepad-plus.sourceforge.net/commun..._Mp3tag_mte.zip
This morning I have revised your last code work.
You have delivered the 'jquery.min.js' library along with your code.
Note, there might be a license requirement, which do not allow to split the JS library into smaller parts!
There is no need to load the JS library from the Internet everytime.
You can copy the JS file into your local Mp3tag APPDATA folder and reference it from there.
I've added some $replace functions for HTML escaping.
I've tried not to change your code too much, to give you the chance to comprehend the proposals.
See attached zip file.
Lyrics_to_One_Big_Formatted_HTML_File__v.8beta__Light.revised.zip (19.6 KB)
DD.20110522.1335.CEST
Lyrics_to_One_Big_Formatted_HTML_File__v.8beta__Light.revised.zip (19.6 KB)