Вопрос

I'm parsing a html page with the following code:

function mealSearch() {
    $.get('http://www.season-hof.de/speisekarte.html', function(html){
       html = $(html.replace(/<img[^>]*>/g,"")).find("div.inhalt h2");
        $("#mealResults").html(html);
    });
}

The text on .../speisekarte.html is shown in bold.

Is it possible to parse the text in normal?

Это было полезно?

Решение

It sounds like you have some CSS set for #mealResults that is bold. If not, set CSS for #mealResults to have font-weight:normal.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top