Home > By category > Scripts >Modules > Safe HTML



Safe HTML

  • Downloads: 
  • Views: 
  • Rating:

The 6.x version is out as development snapshot. Please test it and report bugs.

Safe HTML is a module that filter the input before the content is stored in the database. Unlike Drupal basic filtering system, Safe HTML filter the form post and perform code cleaning before the content is stored on the site backend.

Safe HTML must be enabled on the Input formats section as a filter for the desired input format. Safe HTML cannot be used in conjunction with PHP Parser Filter because Safe HTML will strip any PHP code. Safe HTML can be used together with HTML Filter in order to limit HTML tags to an allowed array.

Administrators and allowed users can define custom PHP code to perform additional tasks on the form input. The site administrator can define what kind of custom transformation may occur on the form content. He must appy these transformations to a variable named $html. Example:

// strip consecutive spaces
$html = preg_replace("/[ ]{2,}/i", " ", $html);

The module is based on SafeHTML a project leaded by Roman Ivanov. This module strips down all potentially dangerous content within HTML:

* opening tag without its closing tag
* closing tag without its opening tag;
* resolving cases like <p><em>abc</p></em>;
* strip any of these tags: "base", "basefont", "head", "html", "body", "applet", "object", "iframe", "frame", "frameset", "script", "layer", "ilayer", "embed", "bgsound", "link", "meta", "style", "title", "blink", "xml" etc.
* any of these attributes: on*, data*, dynsrc
* javascript:/vbscript:/about: etc. protocols
* expression/behavior etc. in styles
* any other active content

It also tries to convert code to XHTML valid, but htmltidy is far better solution for this task.

Free download from Shareware Connection - The 6.x version is out as development snapshot

Publisher: Claudiu Cristea | License: Freeware | Price: 0.00
Version: 5.x-1.2 | Size: 20 KB | Platform: PHP, Scripts
Released Date: 04-04-2013 | Rating: 0 | Title: Safe HTML

Author Url: http://drupal.org/
Program Info Url: http://drupal.org/
Download Url: http://ftp.drupal.org/files/projects/safehtml-5.x-1.2.tar.gz

Safe HTML keywords:
Safe HTML related downloads:

HTMLcomment - HTMLcomment provides an input format filter that allows HTML comments, i.e. <!-- ... -->, and an additional filter that allows hidden comment, i.e. [!-- ... --].

Clean End of Lines - Clean End of Line provides an input format filter that removes trailing white spaces from lines

nBit HTML Viewer ActiveX - A HTML viewer activeX control for any software developer. Integrates with ease into any development environment that support activeX controls.Pefect for the developer who wants to display media rich HTML content in their applications.

Digital Inputs Filter - The filter module "Digital inputs filter" for our data loggers (for example, Accurate Printer Monitor ) is an additional module that provides a method to exclude less significant data records from the final data export.

Sense OPML Plugin - With this Import-Export Plugin, Silva Elm's Sense Professional Ediitor may be used as a freestyle OPML Editor. Outlines may be moved up, down, between levels efficiently. HTML content can be included without configuration or markup concerns.

Shareware Connection periodically updates pricing and software information of 'Safe HTML' from company source 'Claudiu Cristea' , so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft,  Using 'Safe HTML' crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of Safe HTML.

New Reviews

Style Jukebox - No matter if you use a computer for personal needs or work in a networked setup, listening to music is commonplace. It is required for relaxation amidst work and nearly every user indulges in it. For music playback on PC, the WMP is not the only ...

Cold Turkey - To keep your kids and teenage family members away from pornographic and objectionable websites you can use parental control software. Such apps offer numerous restrictive measures to limit PC and web access for young users. However, adult users ...

MiniTool Partition Wizard Home Edition - It is true that you need a powerful CPU and adequate amounts of RAM to keep your computer running smoothly. However, it is also necessary to ensure that the hard disk remains in top condition. Hard disk needs to be properly optimized and ...

Windows Media Player - There is hardly any Windows user who has not used Windows Media Player. This app was bundled with nearly each version of Windows and whether you like or dislike the software, it is likely you had a brush with it during your initial days with the ...

Haihaisoft HUPlayer .4.5v - People use various types of media software to play back audio and video files in their PCs. While a majority of users stick with the bundled Windows Media player, some others opt for commercial and third party alternatives. If you want something ...

Norton Security with Backup - Symantec is an old time player in PC security and its various security suites with Norton brand name are used all over the world. With time, Norton security apps have been tweaked to consume fewer resources and they come with several bells and ...

Groovy Media Player - There is hardly any PC user who does not listen to music while working on PC or at leisure time. For media playback on Windows PC, there are so many apps. You can opt for default WMP that comes with the OS. However, there are several other third ...

DrawPad Free Graphic Editor - There are so many image editors and drawing apps available nowadays but hardly anything as simple and lightweight as DrawPad Graphics Editor. It is a vector graphics editor. However, it can also work with raster graphics formats.

...

Bitcasa - The way computing technology evolves is quite amazing. Even a few years back data backup was limited mostly to external hard drives and DVDs. However, the proliferation of high speed internet access and emergence of cloud storage services have ...

Windows Live Family Safety - Using parental control applications has become a necessity for those people who have tech savvy kids and computers at home. In fact, you should use such software even if your kid is not tech savvy. Needless to say, children depend on internet for ...




New Downloads

Honeyview Image Viewer

Honeyview is very fast image
and archived image viewing
software. It allows viewing of
images within an archive
without ...

.NET WORD Component for CS
VB.NET ASP.NET

A high-speed, reliable WORD
library with affordable price
which lets you add WORD
functionality to your .NET
applications ...

pplot

PPLOT is a graphical plot
layout and design tool for
both Matlab 4 and Matlab 5
(both PC and UNIX versions)

fig2texPS - Export Matlab
Figure to LaTeX

The aim of this function is to
create a tex-code picture of a
Matlab figure in PSTricks
syntax

Conic Plotter

This is my second submission.

Contacts Module

The Contacts module allows
users to store a list of
contacts and relevant related
information.

New Block Library Simulink
called The Phase Filter

It is a new block simulink
signal library called the
Phase Filter.The transfert
function is
F(p)=(1+T1p)/(1+T2p)

PHP Toolbox

PHP Toolbox is designed to
make the process of creating
database-powered websites
easier.

BillyBen Ring

BB Rings can display your
links, with or without their
own category, your categories,
your page and your posts tags.

Area Conversion Calculator

Area Conversion Calculator
converts a types of area
measurement units to other
known units.

EWMA St.Dev.

This code calculates the
Exponentially Weighted Moving
Average Standard Deviation

MATT

MATT is an application that
provides enhanced test
generation capability for
users of the MathWorks
products, MATLAB and ...