Now this is a straight and simple question.
How can I achieve these two things.
FIRST
Input - hey I\'m smiling
Try str_replace.
First: