Advertisement
Guest User

Untitled

a guest
Oct 12th, 2016
454
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. Hi, you email is: <br/>
  2. test@email.com
  3.  
  4. Hi, you email is: <br/>
  5. <a target="_blank" href="mailto:test@email.com">test@email.com</a>
  6.  
  7. # Text without the 'mailto:' link
  8. Hi, you email is:
  9. test@email.com
  10.  
  11. Hi, you email is:<br />
  12. test&#64email&#46com
  13.  
  14. <a name="myname">test@email.com</a>
  15.  
  16. Hi, your email is:
  17. test at email dot com
  18.  
  19. text = indiandexter007@gmail.com
  20. chars = ['.','@']
  21. encloseIn = 'span'
  22.  
  23. for char in chars:
  24. text = string.replace(text, char, '<'+encloseIn+'>'+char+'</'+encloseIn+'>')
  25.  
  26. &#8203;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement