Hi All, I am building a twitter clone to learn golang and i need to unescape the hashtag url.
full source in github github.com/ccaglak/twr thanks all in advance for i, v := range gPost { h := GetHashTags(v.Post) for _, ht := range h { gPost[i].Post = strings.Replace(gPost[i].Post, ht, "<a href='/hashtag/"+ht+"'>"+ht+"</a>", -1) } } if a == true { tmpl.ExecuteTemplate(w, "timeline.htm", &App{Post: gPost, FUser: foll}) } else { http.Redirect(w, r, "/login", 302) } -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.