skip to Main Content

Getting the inner HTML value from the dropdown

I am using a Bootstrap dropdown like this: <ul class="dropdown-menu"> <li> <a class="dropdown-item" href="#" (click)="getMyValue('myvalue')">My Value</a> </li> <li> <a class="dropdown-item" href="#" (click)="getMyValue('someothervalue')">Some Other Label</a> </li> </ul> and the function looks like this: getMyValue(todo: string) { console.log("selected value is:", todo); console.log("selected…

VIEW QUESTION

Python: Remove everything between two given HTML tags

The programming language of choice is Python. This is my HTML text: <a href="https://www.example.com">Original message</a><br> <ul id="list"> <li class="blockbody" id="post_1"> <div class="header"> <div class="datetime"> 24 januari 2020, 11:34 </div><span class="name">Jane Doe</span> </div> <div class="content"> <blockquote class="restore"> <div class="bbcode_container"> <i class="fa…

VIEW QUESTION
Back To Top
Search