Solved problem with processing HTML values