In my application users can submit links. I want to insert the text content of the link in my MySQL database so that I can do further indexing and searching.
I am consider using the file_get_contents method in PHP, and then insert the data into MySQL. What are the security pitfalls here? Or is this task flow wrong and there are some special modules to do these types of work?
(I am already using PDO, but I may not have made clear previously that I would like to get only the main text content, excluding the css and javascript that might be included in the html)