How to only allow certain html tags in a text box
Example:
<Strong>
<p>
The code below is where I have been trying to implement the solution in a class created.
[Required]
(Code)
Public string car { get; set; }
How would I go about implementing the solution and is it possible at the point where (code) is written above.
The following Regular Expression allows only the Html tags specified:
This allows for the html
<p> </p> <strong> </strong>to be entered while not allowing any other tags.Add other tags if required.