Icons in chat input

Hi Team, In chat input…with normal text string…instead of icon text…we want to show the icon priview… Can any one help me with this ?