Welcome Guest, Not a member yet? Register   Sign In
validation->set_message strip the <p> tag

In CI Validation class when I use something like:

$this->validation->set_message($rules[$key], "<span style='color: red;'>*</span>");

The error message generates the code like:

<p><span style='color: red;'>*</span></p>

Is there any way I could strip the <p> tag?

As clearly documented in the UserGuide
$this->validation->set_error_delimiters("", "");

Ohh thanks. My eyes deceived me :p

Theme © iAndrew 2016 - Forum software by © MyBB