Until the html entities in code is resolved

For other topics related to the FreeBASIC project or its community.
sir_mud
Posts: 1401
Joined: Jul 29, 2006 3:00
Location: US
Contact:

Until the html entities in code is resolved

Postby sir_mud » Feb 08, 2014 17:27

Here is a small program to decode all html entities found in a file. Tested with .24 and up, on windows compile then just drop a file on the exe, everywhere else just call the executable with the path to the file to fix.

https://gist.github.com/mudhairless/8887091
Mentat
Posts: 332
Joined: Oct 27, 2007 15:23
Location: NC, US
Contact:

Re: Until the html entities in code is resolved

Postby Mentat » Feb 08, 2014 17:35

*cough*sed*cough*. :P

Edit: I think I found the bug. "(" translates to "(" and the old code is broken up into multiple html spans.

One for "&#" with a green color, one for "40" with pink, and a standalone ";".

code:
<span style="color: #66cc66;">&#</span>
<span style="color: #cc66cc;">40</span>
;
v1ctor
Site Admin
Posts: 3799
Joined: May 27, 2005 8:08
Location: SP / Bra[s]il
Contact:

Re: Until the html entities in code is resolved

Postby v1ctor » Feb 08, 2014 17:51

The () error on old posts should be fixed now.

No idea why the board used to convert those chars to &#40; and &#41; back then - the sources are stored like that in the data base.
TJF
Posts: 3486
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Until the html entities in code is resolved

Postby TJF » Feb 08, 2014 21:24

There seem to be other issues with the data base as well. Ie when searching for


I get a list of 9 matches. But only the first two link to posts. All other links report " Page not found", although the posts were found by the search function.
aurelVZAB
Posts: 291
Joined: Jul 02, 2008 14:55
Location: Croatia
Contact:

Re: Until the html entities in code is resolved

Postby aurelVZAB » Feb 12, 2014 22:57

This problematic code board is still under errors with all this crazy signs...
Is there a way to replace this geshi thing with standard - without syntax coloring .
I think that is far better to have uncolored which work properly than this one which is broken.
TJF
Posts: 3486
Joined: Dec 06, 2009 22:27
Location: N47°, E15°
Contact:

Re: Until the html entities in code is resolved

Postby TJF » Feb 13, 2014 5:58

aurelVZAB wrote:I think that is far better to have uncolored which work properly than this one which is broken.

Agreed. And, the geshi highlighting doesn't work (or is incomplete) either. And it's still a problem that the geshi code blocks in board styles other than Maxthon are unlimited in length and we have to scroll a lot when we use a non-standard style.

Return to “Community Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest