How to make modifications only to certain elements of an HTML string on the server-side?

You may also take a look at phpQuery.

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)