How can I slash out a price to denote a sale price in html and php?

Well, the easiest way is to use the <strike> tag in html.  This put a line through your text like so:
Code: Result: For a more complex solution, you can use PHP to create an image, on the fly, putting a red slash across your prices.  Here's a solution:

Note a few things: