/**
  * Function that will check if value is a valid HEX color.
  */
 public function hearthis_clear_color($value, $convert = FALSE)
 {
     $check = hearthis_check_color($value);
     if ($check) {
         if ($convert === TRUE) {
             return substr($value, 1);
         } else {
             return $value;
         }
     } else {
         $value = '#' . $value;
         if (hearthis_check_color($value)) {
             return $value;
         } else {
             return '';
         }
     }
 }
/**
 * Function that will check if value is a valid HEX color.
 */
function hearthis_clear_color($value)
{
    if (hearthis_check_color($value)) {
        $value = str_replace('#', '', $value);
    }
    return $value;
}