How to convert signle quoted code to double quotes?

I am trying to figure out how I can change outputted code from Wordpress that looks like this:

<link rel='index' title='My Awesome Website' href='http://www.myawesomesite.com/' />

to something that looks like this:

<link rel="index" title="My Awesome Website" href="http://www.myawesomesite.com/" />

Essentially, every time the code outputs a single quoted link or element, it changes it to double quotes.

First question is WHY?
What is your purpose for this?

And what ‘technology’ are you using/planning-to-use. In other word, do you want the output from a PHP page to be converted? Do you want a rendered page to be modified with [client-side] Javascript?
Are you writing a Desktop tool of some sort that needs to parse HTML output?

The approach to the problem is wildly different depending upon these factors.

From a simple clean code perspective. Just my own preference.

I was hoping to use a built in filter from Wordpress to do it, but have been able to locate any information on it, yet.

Ideally, it would need to be done on the serverside, prior to output - meaning it needs to be handled by PHP.

Something like this might help

<link rel=/"index/" title=/"My Awesome Website/" href=/"www.myawesomesite.com/" />