Question: I have a feature on my site that allows my users to create a custom "web page". They can add HTML elements in there, CSS, and custom javascript code as they please.

I plan to store the entire web page (HTML, css, javascript, jquery) code in MySQL data with `TEXT` or `MEDIUMTEXT` (unless you have a better solution maybe?). Im also using PHP.

Here is a part of my insert code:

```
$stmt = prepare("INSERT INTO webpages (content) VALUES (:content));
...

```

How can i secure the content/web page code that is being inserted into the database, and/or secure the text when its displayed?

here is a part of the retrieval code:

```
$stmt = prepare("SELECT * FROM webpages WHERE id = :id");
...

```

thank you

Answer: 
1) Check Your "dimen.xml" file and add that line (if file not found create that)

```
<dimen name="smallTxtSize">14sp</dimen>

```

2) Check your "drawable" folder "facebook\_signin\_btn" file was found or not? (if file not found create that)
Use the latest appcompat library. After changing to:

```
implementation 'com.android.support:appcompat-v7:28.0.0' 

```

everything worked great.