Hi!
My mind, that fields output code should be clean.
Only values should be displayed.
Explain.
For example, I need to use item title for my needs.
I use construction :
Code:
echo $item->fields["title"]->display;
I hope to get clean item title:
Code:
Advanced SystemCare Free
but I get
Code:
<div style="display:inline" itemprop="name">
Advanced SystemCare Free
</div>
So, I need to use strip_tags and str_replace, because this code contains extra HTML code and hidden symbols "\n", "\t".
And I need to do this each time, when I use fields for my needs.
Also, I know, that using styles instead classes is not very good idea. How you think?
So, I have question. If I use strip_tags and str_replace for 5-7 fields on item views page - does this affect to page speed loading?