I'm using Snowman, and in my output HTML, instead of
<, >, ", '
it has
<, >, ", '
The only bits that are affected is the text in the passages (the story javascript/stylesheet code is outputted correctly)
I was wondering whether there is a way to make it output a file with the proper characters? I can obviously do a find and replace, but then I have to be careful that I'm not replacing inside strings, etc, which is a bit of a pain.
Comments
In simple terms certain characters in HTML have special meaning, escaping these characters when they appear in plain-text limits the possibility of them being mistaken for something else.
When passages are loaded from the data chunk by the story format's engine, they are decoded, and it's the decoded text that is used. You don't need to do anything for that to happen.
Passage data is stored within Passage objects, which are stored within the passages property (an array indexed by pid) of the Story object's instance, story. Furthermore, the decoded passage text is stored within a Passage object's source property.
If you're trying to get at the decoded text of a passage for some reason, then you can simply use the story.passage() method:
[EDIT]: Whoops, forgot about the story.passage() method. Mea culpa. Thanks to CK, below, for the correction.
I didn't realise that it was converted when run, I just opened the file and thought it was a mistake!