php - How to remove red color text in the excel cell with PHPExcell? -
there cell black , reddish color words. need remove reddish color words withphpexcell
. how can ?
if cell combines both read , black text, contains rich text value, , phone call getvalue() homecoming richtext object. if want text, cast string, , magic __tostring() method richtext object homecoming info plain string value. can set value cell.
if need eliminate reddish words, you'll need parse different runs of text in richtext object, identifying runs have reddish style setting, , concatenating don't plain php string
php phpexcel
No comments:
Post a Comment