Closed (fixed)
Project:
Migrate
Version:
7.x-2.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Feb 2012 at 23:52 UTC
Updated:
20 Feb 2012 at 16:10 UTC
I'm looking at the Handler classes page - http://drupal.org/node/1006990 - and expect that this is probably the best place to find how to figure out how to bring data through something like an auto-tagger or say HTMLPurifier.
I've imported the records, but I'd like to make sure that I've done some cleanup on the records because it would be foolish to assume that the legacy code was all valid HTML let alone xHTML or HTML5 code.
What are the best practices for scrubbing the data?
Comments
Comment #1
mikeryanYou can use callbacks on a field-by-field basis:
Comment #2
mgiffordThanks.. This could be really powerful when combined with something like #1430048: Sanitize programatically
For a simple test I decided to just strip the tags using:
Sadly it didn't seem to strip all of the HTML tags. Not sure why. Have to look into this a bit more.