Is there a way to p...
 
Notifications
Clear all

Is there a way to prevent Story Text entry box from stripping character codes?

6 Posts
4 Users
0 Reactions
1,458 Views
(@angelike-riddle)
Posts: 46
Eminent Member
Topic starter
 

URL to your eFiction: http://www.koishii.net -- site is in maintenance mode at the moment but as this is a general issue with all installations not specific to my situation, I don't anticipate anyone needing to experiment.
Version of eFiction: 3.5
Have you bridged eFiction, if so with what?: No
Version of PHP: 5.2.9
Version of MySQL: 5.0.67-community
Have you searched for your problem: I'm not really sure what keywords to use for something like this...
If so, what terms did you try: n/a
State the nature of your problem: I am attempting to transfer my fan fiction from my blog by pasting the html into the Story Text entry box in the form. Unfortunately, my html uses character codes for quotation marks, apostrophes, and long dashes. These codes are stripped so that the output is ugly like this:

He doesnr17;t. Oh r11; gods r11; he really doesnr17;t.

I've been a member of efiction-based sites before and I've noticed this problem then, too. Is there a way to prevent html from being stripped? It is a personal archive, so I don't anticipate anyone trying anything funny. Help, please? I'm a little desperate. Trying to reformat everything would take ages.
Do you have a test account for us? No.


 
Posted : 06/04/2009 8:54 pm
(@lyndsie)
Posts: 1263
Member Moderator
 

Maybe they can be added to the list of allowed HTML tags in Admin > Settings.


 
Posted : 06/04/2009 9:35 pm
(@carissa)
Posts: 791
Member Moderator
 

The problem is those codes aren't valid ascii codes. They should be formatted like so: &code;. I'm not sure why the ampersand is converting to an r. Is it like that in the original html?

I would suggest that you copy the text (not the html) from the original blog into the text box with TinyMCE on. It should retain your formatting. Conversely, you could try copying the html into the text box with TinyMCE off.

ETA to address the previous reply: you can't add them to the allowed tags because as I said they aren't valid, and ascii codes aren't html.


 
Posted : 06/04/2009 9:37 pm
(@angelike-riddle)
Posts: 46
Eminent Member
Topic starter
 

I probably should have clarified that I have the TinyMCE turned off for the whole site--personal preference. I don't much care for it.

The actual code I'm putting in looks like this:

He doesn’t. Oh – gods – he really doesn’t.

I haven't a clue where the "r" is coming from. It's odd. Are you saying there is no way to make these codes work?


 
Posted : 06/04/2009 9:56 pm
(@becca)
Posts: 553
Honorable Member
 

Hm another way to do this could be to copy and paste the text as it is displayed on your page (not through the coding) and paste it into a Word processor like MS Word and then perhaps save it and then import it through TinyMCE?


 
Posted : 06/04/2009 10:56 pm
(@carissa)
Posts: 791
Member Moderator
 

The codes should work, we just need to figure out what's messing them up. It most likely doesn't have anything to do with eFiction though. When you view the source of the page, does it have the correct code, or the code with the r?

What is the character set of the site you are copying from? (If you don't know how to find it, view the source and it should be near the top in a metatag.) Also, what browser and operating system are you using? If you are using a mac, you may need to change the character set for your site from iso-8859 to utf-8. If the source of your site has the same thing that appears on screen (with the rs), you'll need to reupload a story to see if it works.


 
Posted : 06/04/2009 11:30 pm
Share: