AC TO AC OPTOCOUPLER

Hello!
i have signal of 0-5v and i want to get it inside opto coupler so that the output voltage after the opto coupler will be the same as the input voltage. what are you suggest to do? can i use transformer instead?

Thank you

You want a linear opto-coupler:
http://www.ti.com/lit/ds/symlink/til300.pdf

Can you draw the circuit please? I didnt succed to do this, i get wrong output values.

Thank you