Site Variables - strip html from list

suwsuw
edited September 2012 in Feature Requests
I've noticed that site variables list, display value as is, now it's verry anoying if, one have some html content let's say some h3 some tables, etc... lists become huge and porly accesible not mentioning very anoying.
Ohe have 2 options - to modify it's sitevariables_model and let it so or to write here and hope this future request will be added on next release.
Eventualy a global function to strip html tags - to ease the procedure.

function list_items($limit = NULL, $offset = 0, $col = 'id', $order = 'asc') {
$data = parent::list_items($limit, $offset, $col, $order);

foreach($data as $key => $val){
$value=strip_whitespace(preg_replace("/(\n|\r|\t)/" ," ", strip_tags($val["value"])));
$data[$key]["value"]=word_limiter($value,30);
}

return $data;
}
I limited the content to 30 characters, It's enough for me to figure out what the content.

Please let me know what you decide :) thank you.

Comments

Sign In or Register to comment.