javascript obtient du texte du paragraphe

function getContent() {
    return document.getElementById("myParagraph").innerHTML;
}
Tartaud