The following warnings occurred:
Warning [2] Undefined array key "threadviews_countguests" - Line: 745 - File: showthread.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php 745 errorHandler->error_callback
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/inc/class_parser.php 584 errorHandler->error_callback
/inc/class_parser.php 228 postParser->parse_mycode
/inc/functions_post.php 830 postParser->parse_message
/showthread.php 1121 build_postbit
Warning [2] Undefined property: MyLanguage::$thread_modes - Line: 46 - File: showthread.php(1650) : eval()'d code PHP 8.1.31 (Linux)
File Line Function
/inc/class_error.php 153 errorHandler->error
/showthread.php(1650) : eval()'d code 46 errorHandler->error_callback
/showthread.php 1650 eval




Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Unwanted entity interpretation
#1
I'm trying to create a page that shows some sample HTML code. I want the page to appear like this to the user:
Code:
<a href="#dest">Link text</a>


In other words, to show how to create a link. In HTML, I would write
Code:
&lt;a href="#dest"&gt;Link text&lt;/a&gt;

to get the angle brackets to show up instead of being interpreted. If I do this in GetSimple, it's rendered as an actual link.

I can work around this behavior by entity-encoding the "a" following the opening bracket, and by entity-encoding the "/" following the closing bracket (which is difficult to illustrate on this board; apparently it wants to show the "a" and "/" decoded) but this is tedious and shouldn't be necessary. I've read some of the other comments on the forum and tried changing GSEDITOROPTIONS to 'entities : false' in my gsconfig.php, but this had no effect.

I am not using the fancy HTML editor. I'm running GetSimple 3.2.0 on PHP 5.3.2 on Ubuntu 10.04. I have attached a data file that shows this.

Thanks


Attached Files
.txt   test-page.xml.txt (Size: 804 bytes / Downloads: 3)
Reply




Users browsing this thread: 1 Guest(s)