use span instead of div
now extracting inner html