Question: ```
    def number_range(num1,num2):
         list1=[]
        for i in range(num2-num1):
            num1 = num1+1
            list1.append(num1)
        return list1

 number_range(2,8)

```

I want python to return 3,4,5,6,7 but my code just does not work.could anyone help me?

Answer: 
I suggest trying the alternate escaped representations of the apostrophe. My installation allows apostrophes to be directly entered into the database but does escape other punctuation marks. N.B. using echo does not show the raw value as the browser would process it as HTML and replace HTML escape sequences with their target symbol. Try:

```
$wptitle = get_the_title();
$str = ["Let's Talk About", "Let&apos;s Talk About", "Let&#39;s Talk About"];
$rplc = "<span>Let's Talk About</span>";
$title = str_replace($str, $rplc, $wptitle);

```

If you want to see the raw value of a variable, you should use PHP's error\_log() function. Unfortunately, this requires you to know how to access PHP's error log. This is not hard but may be different for different installations. If you must use echo then try:

```
echo htmlspecialchars($value);

```

This insures that the browser does not replace HTML escape sequences with their targets.
Why you need to use `str_replace()` here? just wrap your title value with `<span></span>` tag?

```
$wptitle = get_the_title();
if($wptitle != '') {
  $title = '<span>'. $wptitle .'</span>';
} 

```