NAME
Labyrinth::MLUtils - Standard Database Access Methods
SYNOPSIS
use Labyrinth::MLUtils;
FUNCTIONS
HTML Tag handling
- LegalTag
-
Returns TRUE or FALSE as to whether the given HTML tag is accepted by the system.
- LegalTags
-
Returns the list of HTML tags that are accepted by the system.
- CleanTags
-
For a given text string, attempts to clean the use of any HTML tags. Any HTML tags found that are not accepted by the system are encoded into HTML entities.
- CleanHTML
-
For a given text string, removes all existence of any HTML tag. Mostly used in input text box cleaning.
- SafeHTML
-
For a given text string, encodes all HTML tags to HTML entities. Mostly used in input textarea edit preparation.
- CleanLink
- CleanWords
Drop Down Boxes
- DropDownList
- DropDownListText
- DropDownRows
- DropDownRowsText
- DropDownMultiList
- DropDownMultiRows
Error Functions
- ErrorText
-
Returns the given error string in a HTML span tag (bold red font).
- ErrorSymbol
-
Flags to the system that an error has occured and returns the HTML symbol for 'empty' which can then be used as the error field indicator.
Protection Functions
- LinkSpam
-
Checks whether any links exist in the given text that could indicate comment spam.
CSS Handling Code
HTML Demoroniser Code
- demoroniser ( INPUT )
-
Given a string, with replace the Microsoft "smart" characters with sensible ACSII versions.
HTML Handling Code
- process_html ( INPUT [,LINE_BREAKS [,ALLOW]] )
- escape_html ( INPUT )
- unescape_html ( INPUT )
- cleanup_attr_style
- cleanup_attr_number
- cleanup_attr_multilength
- cleanup_attr_text
- cleanup_attr_length
- cleanup_attr_color
- cleanup_attr_uri
- cleanup_attr_tframe
- cleanup_attr_trules
- cleanup_html
- cleanup_tag
- cleanup_close
- cleanup_cdata
- cleanup_no_number
- check_url_valid
- cleanup_attr_inputtype
- cleanup_attr_method
- cleanup_attr_scriptlang
- cleanup_attr_scripttype
- strip_nonprintable
SEE ALSO
Labyrinth
AUTHOR
Barbie, <barbie@missbarbell.co.uk> for Miss Barbell Productions, http://www.missbarbell.co.uk/
COPYRIGHT & LICENSE
Copyright (C) 2002-2011 Barbie for Miss Barbell Productions
All Rights Reserved.
This module is free software; you can redistribute it and/or
modify it under the Artistic License 2.0.