1

What is the best data santization function to use when the entire source code of a webpage (head, body elements, etc) are going to be stored in a post meta field?

In other words, which function will encode the most html tags while avoiding dropped data?

  • I'm just curious, why do you need to store the entire source code of a page in the database? – t31os May 10 '13 at 8:24
  • We're trying to identify patterns in how people contribute to crowdfunding projects and are collecting raw data faster than we can manage it. Storing the entire source is a way to time stamp and begin to process the backload. This is for an educational project and has very limited resources, hence trying to use WP as a basic-level data warehouse. We can build a plugin to processes the meta data, save the content of the project as the_content and then use the Jetpack json api to make it available to the community. – m-torin May 11 '13 at 3:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.