public function setContent($value)
    {
        if (strpos(strtolower($value), 'getelementbyid') > 0) {
            $this->options['content'] = new JsExpression($value);
        } else {
            $value = preg_replace('/\r\n|\n|\r/', "\\n", $value);
            $value = preg_replace('/(["\'])/', '\\\\\1', $value);

            $this->options['content'] = $value;
        }
    }
public function setContent($value)
    {
        if (strpos(strtolower($value), 'getelementbyid') > 0) {
            $this->options['content'] = new JsExpression($value);
        } else {
            $value = preg_replace('/\r\n|\n|\r/', "\\n", $value);
            $value = preg_replace('/(["\'])/', '\\\\\1', $value);

            $this->options['content'] = $value;
        }
    }
public function setContent ( $ value ) { if ( strpos ( strtolower ( $ value ) , 'getelementbyid' ) > 0 ) { $ this -> options [ 'content' ] = new JsExpression ( $ value ) ; } else { $ value = preg_replace ( '/\r\n|\n|\r/' , "\\n" , $ value ) ; $ value = preg_replace ( '/(["\'])/' , '\\\\\1' , $ value ) ; $ this -> options [ 'content' ] = $ value ; } }
Sets the content of the infoWindow object. It has support to get the content from a DOM node.

@param string $value
Sets the content of the infoWindow object . It has support to get the content from a DOM node .