1
mikelmoore
XoopsTree getNicePathFromId/MyTextSanitizer htmlSpecialChars XHTML compliance
  • 2006/5/11 17:32

  • mikelmoore

  • Just popping in

  • Posts: 3

  • Since: 2005/2/23


This question regards XOOPS 2.2.3, as I haven't done any regression testing...

I'm trying to reach XHTML compliance (at least at the transitional level) and I've run into this issue: Link references created by XoopsTree's getNicePathFromId method (which calls the MyTextSanitizer's deprecated makeTboxData4Show, which just calls the MyTextSanitizer class's htmlSpecialChars method) doesn't return quoted values on assignments, which will fail validation tests.

I've written a weather forecast module (with an XML feed pull from the weather channel) and was trying to make the module use more core functions before I would consider submitting it for use. However, I only want to create XHTML compliant code, so this leaves me in a quandry: keep my existing methods and maintain compliancy, or use the core functionality and lose compliancy. The issue revolves around the htmlSpecialChars method's use of PHP's htmlspecialchars function with ENT_QUOTES instead of the default ENT_COMPAT.

For an existing example of what I mean the CBB (v3.01) forum, using XoopsTree, ends up with links like:
http://website/modules/newbb/viewforum.php?forum=70

instead of
http://website/modules/newbb/viewforum.php?forum='70'


This is my first XOOPS modules, so some help would be appreciated.

Login

Who's Online

439 user(s) are online (321 user(s) are browsing Support Forums)


Members: 0


Guests: 439


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits