CptPillow

okay so doing this function

  1. public function LazyContent(){
  2. return $this->Content = str_replace(' src="', ' data-src="', $this->Content);
  3. }

spits out only html to the template... its not loading it as html content

CptPillow

ill just call it

  1. LazyContent

to be lazy about it

CptPillow

yeah that was my idea for the function name

CptPillow

so create a function for the content that does the str_replace?

CptPillow
  1. $this->Content = str_replace(' src="', ' data-src="', $this->Content);